Hacker News new | ask | show | jobs
by vedosity 1729 days ago
The page seems to assume that semicolon's keyCode is 59 so the modifier key in the demo only works with Firefox according to this table on MDN[0]. The keyCode for semicolon varies not only by keyboard layout but also by browser. Mine is 186.

[0]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve...

1 comments

Hey, thanks! TIL. Indeed, I only tested Firefox.