aboutsummaryrefslogtreecommitdiff
path: root/emcc.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-10-25 10:24:15 +0100
committerBen Harris <bjh21@bjh21.me.uk>2022-10-25 20:13:59 +0100
commite6faebeb9a1856c9ea7140eb650b48ada0adc923 (patch)
tree12e06818181e158e1bd23dba2b176a29b7f79558 /emcc.c
parent43c89dd5e118cf244b8eb978b13fecfe2240e9e7 (diff)
downloadpuzzles-e6faebeb9a1856c9ea7140eb650b48ada0adc923.zip
puzzles-e6faebeb9a1856c9ea7140eb650b48ada0adc923.tar.gz
puzzles-e6faebeb9a1856c9ea7140eb650b48ada0adc923.tar.bz2
puzzles-e6faebeb9a1856c9ea7140eb650b48ada0adc923.tar.xz
js: Remove keypress handler
At least in modern browsers (and I suspect in all browsers), cancelling a keydown event ensures that the subsequent keypress event doesn't fire. See <https://w3c.github.io/uievents/#keys-cancelable-keys>. So there's no point in having a handler on keypress events that just tries to cancel them as well. Removing the handler doesn't do much now, but it opens the possibility of being a bit more selective about which keydown events we cancel.
Diffstat (limited to 'emcc.c')
0 files changed, 0 insertions, 0 deletions