You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you press down the mod key, the value will change to false. However, releasing the key will not set the value back to true. This seems to be happening with modifier keys like mod, cmd, shift. However it works as expected with non-modifier keys.
The text was updated successfully, but these errors were encountered:
Hi,
It looks like calling
isHotkey(key, event)
on akeyup
event will not identify keys being released when trying to test a modifier key.You can find an example in the following sandbox:
https://codesandbox.io/s/keyup-bug-k41gy?file=/src/index.js
When you press down the
mod
key, the value will change tofalse
. However, releasing the key will not set the value back totrue
. This seems to be happening with modifier keys likemod
,cmd
,shift
. However it works as expected with non-modifier keys.The text was updated successfully, but these errors were encountered: