Closed bradystroud closed 2 years ago
Doesn't the macOS option key work as ModKeys.Alt
?
I'm not sure because I don't have any macOS devices, but MDN Web Docs say it should be working as an altKey
.
Ah...
I found a thread in the "Stack overflow" site.
It turns out that Option+u was actually returning the character ยจ instead of u for the key attribute.
Just as a historical reason, this library's current implementation looks up the key
property first before looking up the code
property.
I might have to rewrite the part of this library where the above link points.
(...But I don't have any macOS devices... I have to go to Apple Store first!? ๐ )
Hi @jsakamoto,
It seems like NativeCode
always shows the correct character, so yes, it looks like https://github.com/jsakamoto/Toolbelt.Blazor.HotKeys/blob/master/Toolbelt.Blazor.HotKeys/script.module.ts#L130-L134
will need to be rewritten to use code
primarily ๐ข
@bradystroud
I fixed it at commit d803418fd9e6b7ff5516eb7700ae2a17f5acc444 !
(I used https://www.lambdatest.com/ to test it.)
Could you try out the latest version of the "Blazor Hotkeys" NuGet package?
(Closing issue) Hey @jsakamoto,
It works! ๐ Thanks for that - Much appreciated
Hi,
This would be a very similar change to 023b874