shortcuts icon indicating copy to clipboard operation
shortcuts copied to clipboard

When binding a shortcut to `/` , it only triggers for the dedicated `/` on the numpad

Open hognevevle opened this issue 3 years ago • 2 comments

Thank you for a great library!

I noticed that when I bind a shortcut to /, it will not trigger when I press Shift+7, which is where the forward slash exists in my (Norwegian) keyboard layout. If I press the dedicated / key on the numpad (code NumpadDevide), it works as expected.

As I'm pretty sure Shift+7 isn't consistent for all keyboard layouts, is there any way to bind this shortcut in such a way that it works across the board for the different combinations that produce a /?

hognevevle avatar Apr 07 '21 19:04 hognevevle

By the way, here is an example of the keyboard event in question (shift+7) which doesn't trigger the shortcut defined for /.

CleanShot 2021-04-07 at 21 20 07

hognevevle avatar Apr 07 '21 19:04 hognevevle

I should look into this, it feels like unless you have another shortcut bound to Shift+7 the library should already detect that a "/" was written in a keypress event and handle the relevant shortcut properly. As that doesn't seem to be happening I think this is a bug.

fabiospampinato avatar Feb 16 '22 05:02 fabiospampinato

@hognevevle could you check if this got fixed in v3?

fabiospampinato avatar Aug 30 '23 01:08 fabiospampinato

Closing for lack of more info.

fabiospampinato avatar Mar 22 '24 23:03 fabiospampinato