vrome icon indicating copy to clipboard operation
vrome copied to clipboard

Vrome Does Not Recognize Remapped Number Keys

Open jpevarnek opened this issue 12 years ago • 2 comments

Remapping the number keys (http://www.kaufmann.no/roland/dvorak/) causes the getKey function in vrome to fail (for example, pushing the "(" key on my keyboard causes a "9" to be returned as no shift is detected and the keycode for 9 is in the key event).

jpevarnek avatar Apr 26 '12 19:04 jpevarnek

This is tough to reproduce locally.

What I can do is guide you so you can submit a patch.

Check get-key.js There is a mapping array named shiftNums

My guess you need to add the reverse mapping. So, when we check if shift is pressed, we check for key ( and associated value 9

However, unless I switch to dvorak, I can't test it easily.

Feel free to submit a patch or wait until one of us has enough time to fix it + test it properly. Thanks!

hbt avatar Apr 26 '12 22:04 hbt

The problem is, if you press what is my "(" key, chrome (and other browsers to the best of my knowledge) still sends it as a "9" press with shift disabled. Pressing "9" on the other hand sends the key as a "9" with shift enabled.

jpevarnek avatar Apr 27 '12 01:04 jpevarnek