Skip to content

Commit

Permalink
Merge pull request #31 from jkoutavas/jay/keypad
Browse files Browse the repository at this point in the history
Fixed keypad macro detection
  • Loading branch information
jkoutavas committed Mar 20, 2022
2 parents b156be1 + 782974e commit d31bd1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/Savitar2/src/models/macros/HotKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ struct HotKey: Equatable {
modifierFlags = HotKey.handleFlag(&label, "control-", .control, modifierFlags)
modifierFlags = HotKey.handleFlag(&label, "option-", .option, modifierFlags)
modifierFlags = HotKey.handleFlag(&label, "command-", .command, modifierFlags)
if label.contains("KP") {
modifierFlags.insert(.numericPad)
}

// we do a "bijective" dictionary lookup
// https://stackoverflow.com/questions/27218669/swift-dictionary-get-key-for-value
Expand Down

0 comments on commit d31bd1a

Please sign in to comment.