]> git.proxmox.com Git - mirror_novnc.git/commit - tests/test.helper.js
Fix issue #326: correct handling of shift key
authorJesper Dam <jalf@medical-insight.com>
Mon, 6 Jan 2014 12:59:25 +0000 (13:59 +0100)
committerJesper Dam <jalf@medical-insight.com>
Mon, 6 Jan 2014 12:59:25 +0000 (13:59 +0100)
commitf6a1d98a3a40a9f37c337d06420d277899a0a269
tree205b23cf15a2f70354c5553ca9a2f60226f5296a
parent85e899166447866fc2fd9e51a565efbc8308673e
Fix issue #326: correct handling of shift key

When shortcut modifiers (modifier keys such as CTRL, which do not participate in
composing character input) are pressed, we try to suppress the keypress
event, as browsers do not reliably generate it. This means that
subsequent key events are decoded only based on the keydown event.

Due to a type error (comparing a string to a number), shift was
mistakenly treated as a shortcut modifier, preventing text input which
relied on shift, such as _ and %, from being generated.
include/keyboard.js
tests/test.helper.js