You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
My keyboard layout has no numbers like e.g. kVK_ANSI_2 mapped and Amethyst doesn't make use of numpad keys, so the following config file doesn't work for me:
This code results in stringToKeyCodes[""] = [kVK_ANSI_2] for me, thus I get the error String "2" does not map to any keycodes later on.
I do have the numpad keys mapped, though, so it could result in stringToKeyCodes["2"] = [kVK_ANSI_Keypad2] instead, if the following switch wouldn't explicitly ignore numpad keys:
Describe the bug
My keyboard layout has no numbers like e.g.
kVK_ANSI_2
mapped and Amethyst doesn't make use of numpad keys, so the following config file doesn't work for me:Additional context
Amethyst/Amethyst/Events/HotKeyManager.swift
Lines 301 to 320 in d465051
This code results in
stringToKeyCodes[""] = [kVK_ANSI_2]
for me, thus I get the error String "2" does not map to any keycodes later on.I do have the numpad keys mapped, though, so it could result in
stringToKeyCodes["2"] = [kVK_ANSI_Keypad2]
instead, if the following switch wouldn't explicitly ignore numpad keys:Amethyst/Amethyst/Events/HotKeyManager.swift
Lines 284 to 299 in d465051
What's the reason behind this? AFAIK removing it wouldn't break anything:
stringToKeyCodes["2"] = [kVK_ANSI_2, kVK_ANSI_Keypad2]
becausekVK_ANSI_2 < kVK_ANSI_Keypad2
Amethyst/Amethyst/Managers/HotKeyRegistrar.swift
Line 33 in d465051
Versions:
PS: The following seems to be dead code, doesn't it?
Amethyst/Amethyst/Events/HotKeyManager.swift
Lines 39 to 70 in d465051
The text was updated successfully, but these errors were encountered: