hotkeys-js icon indicating copy to clipboard operation
hotkeys-js copied to clipboard

can not support shift keyup

Open naturaless opened this issue 2 years ago • 3 comments

hotkey('*',(event)=>{ if(event.shiftkey) })

this way can trigger shift keydown. but how can i get shift keyup.

naturaless avatar May 20 '22 08:05 naturaless

hotkeys('ctrl+a,alt+a+s', {keyup: true}, function(event, handler)

msimic avatar Jun 24 '22 12:06 msimic

@naturaless Have you tried the following ?

hotkeys('*', { keyup: true }, () => {
    if (hotkeys.shift) {
        // ...
    }
});

licarth avatar Oct 11 '22 20:10 licarth