jsakamoto / Toolbelt.Blazor.HotKeys2

This is a class library that provides configuration-centric keyboard shortcuts for your Blazor apps.
https://jsakamoto.github.io/Toolbelt.Blazor.HotKeys2/
Mozilla Public License 2.0
87 stars 6 forks source link

ModCode.Ctrl + Code.N Not Working #24

Open yeganehaym opened 1 month ago

yeganehaym commented 1 month ago

i have added this codes:

.Add(ModCode.Ctrl, Code.B,Create , new HotKeyOptions())
        .Add(ModCode.Ctrl | ModCode.Shift, Code.N, CreateIrregular, new HotKeyOptions());

none of them not Working and open new window in chrome browser for example but if i change the letter from N to something else like B working

jsakamoto commented 1 month ago

Unfortunately, I believe that not working of handling Ctrl + Shift + N key events is a limitation on Chromium browsers.

See also: https://stackoverflow.com/questions/13408233/event-binding-ctrl-shift-n-in-chrome

Therefore, nobody must be able to handle Ctrl + Shift + N keyboard events even if they try it with a JavaScript code. There must be nothing what we can do. 😭