vrome
vrome copied to clipboard
Vrome Does Not Recognize Remapped Number Keys
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).
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!
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.