Open semrola opened 8 months ago
For example we have this snippet of code:
hotkeys('ctrl+i', function(event) { event.preventDefault(); alert('This is ctrl+i'); }) hotkeys('shift+k', function(event) { event.preventDefault(); let ctrl = hotkeys.ctrl; alert('Is ctrl pressed: ' + ctrl); })
If we execute ctrl+i first and then shift+k, the second alert will indicate that ctrl is pressed even though it is not. Tested with version 3.13.7.
ctrl+i
shift+k
ctrl
Found out that hotkeys.isPressed('ctrl') is working correctly.
hotkeys.isPressed('ctrl')
For example we have this snippet of code:
If we execute
ctrl+i
first and thenshift+k
, the second alert will indicate thatctrl
is pressed even though it is not. Tested with version 3.13.7.