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
I tried to use keyName='*' to listen to every key, then I got this issue:
When I pressed 'shift' + 'command' at the same time, onKeyDown was trigged for twice, which is right. Then I released 'shift' and 'command' respectively, the question is that 'onKeyUp' was only trigged once.But I need to know both status of them.And because of the issue#27 from the repository hotkeys, I cann't fix this by using keyName='shift'.
I tried to use
keyName='*'
to listen to every key, then I got this issue:When I pressed 'shift' + 'command' at the same time,
onKeyDown
was trigged for twice, which is right. Then I released 'shift' and 'command' respectively, the question is that 'onKeyUp' was only trigged once.But I need to know both status of them.And because of the issue#27 from the repository hotkeys, I cann't fix this by usingkeyName='shift'
.I found the reason:
this.isKeyDown
was set tofalse
so thatonKeyUp
will not be trigged for the second time.That's all I know. Unfortunately, I have no idea to fix this.
The text was updated successfully, but these errors were encountered: