Skip to content

Commit

Permalink
fix: option key was broken as a meta key
Browse files Browse the repository at this point in the history
Bug was introduced in b6e4826
  • Loading branch information
Louis Pontoise committed Oct 25, 2019
1 parent c7af429 commit e59d51d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions alt-tab-macos/logic/Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion alt-tab-macos/logic/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit e59d51d

Please sign in to comment.