omridevk / ng-keyboard-shortcuts

Dead Simple Keyboard Shortcuts Management for Angular

Home Page:https://ng-keyboard-shortcuts.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When CapLock is on and Shift is pressed, shortcuts with alphabetic key are not triggered

Grasscropper opened this issue · comments

Hey there, I think I found a bug. When CapLock is on and Shift is pressed, shortcuts with alphabetic keys are not triggered. This seems not to effect combination/sequence key shortcuts. So it works for a shortcut with key "t a" but not for one with key "k".

I used addEventListener to check how JS normally reacts and there it triggers just fine:

addEventListener('keypress', (e)=> {
      console.log(e);
    }))

image

Any idea why this happens?

commented

@Grasscropper
Can I reproduce it in the example app codesandbox?
https://codesandbox.io/s/yvyovny43v
I'll look into, thanks for reporting.

@Grasscropper
Can I reproduce it in the example app codesandbox?
https://codesandbox.io/s/yvyovny43v
I'll look into, thanks for reporting.

Pfff not sure why but works absolutely fine in codesandbox but somehow not in my app...

commented

Closing, need more information.