by uvdiv · 14y ago · 0 comments
(which,keyCode,charCode)
chrome firefox
[ 91 91 91 91 0 91
alt-[ ? 91 0 91
ctrl-[ 27 27 27 91 0 91
esc ? 0 27 0
It's one example out of many, but how do you distinguish such cases, short of enumerating the behavior of every browser (and I guess keyboard layout too)?[1] https://developer.mozilla.org/en/DOM/KeyboardEvent#Virtual_k...
[2] I don't know what chrome does, I couldn't convince it to capture an 'esc' or 'alt-['.