Open jbmartinez opened 10 years ago
Should this be using keypress instead of keydown?
keypress
is the traditional method, but I prefer keydown
because:
input
event and we should stop using it.keypress
event, although it indeed triggers a keypress on most popular browsers.I should have used thekey
property instead of keyCode
or which
, but it would not work on some browsers.
In any case, replacing "keydown" for "keypress" should suffice for implementing the latter.
Pressing Escape key closes the panel (#81). It should work in all modern browsers.