forum.dlang.org, version 2 (BETA)
sigod via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Thu Jun 4 13:30:36 PDT 2015
On Thursday, 4 June 2015 at 20:07:26 UTC, Vladimir Panteleev
wrote:
> On Thursday, 4 June 2015 at 19:55:28 UTC, sigod wrote:
>> On Thursday, 4 June 2015 at 15:38:57 UTC, Vladimir Panteleev
>> wrote:
>>> On Thursday, 4 June 2015 at 15:33:56 UTC, extrawurst wrote:
>>>> [...]
>>>
>>> Code in question:
>>> https://github.com/CyberShadow/DFeed/blob/next/web/static/js/dfeed.js#L645-L646
>>>
>>> Can you propose a patch?
>>>
>>
>> Shift+? returns key code 191. And `String.fromCodePoint(191)
>> === '¿'`.
>
> I looked into this.
>
> 191 is actually the code for the '/' key. This means that
> checking for it doesn't work on layouts where the question mark
> is typed by pressing another button. Does this work for you? I
> tried it on the Russian layout (where it's on Shift+7) and it
> doesn't.
>
> I settled by moving the help key to Shift+H.
Hm. Actually 63 key code will appear on `keypress` event. And 191
on `keydown`. (But you use `keydown` for webkit.)
More information about the Digitalmars-d-announce
mailing list