fix: option key was broken as a meta key

Bug was introduced in b6e4826e40
This commit is contained in:
Louis Pontoise committed 2019-10-26 02:02:01 +09:00
1 parent c7af429b8f
commit e59d51ddab
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ enum KeyCode: UInt16 {
case escape = 53
case command = 55
case capsLock = 57
case option = 58
case control = 59
case function = 63
case leftArrow = 123
+1 -1
View File
@@ -41,7 +41,7 @@ class Preferences {
MacroPreference("❖ Windows 10", (2, 0, 0, .white, .clear))
])
static var metaKeyMacro = MacroPreferenceHelper<(KeyCode, NSEvent.ModifierFlags)>([
MacroPreference("⌥ option", (.tab, .option)),
MacroPreference("⌥ option", (.option, .option)),
MacroPreference("⌃ control", (.control, .control)),
MacroPreference("⌘ command", (.command, .command)),
MacroPreference("⇪ caps lock", (.capsLock, .capsLock)),