Skip to content

Commit

Permalink
fix: default TriggerKeys; Shift_L display; hide long press options (#187
Browse files Browse the repository at this point in the history
)
  • Loading branch information
eagleoflqj authored Sep 9, 2024
1 parent e4cc709 commit ca7669c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions src/config/keyrecorder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,12 @@ func shortcutRepr(_ key: String, _ modifiers: NSEvent.ModifierFlags, _ code: UIn
var desc = ""
if modifiers.contains(.control) { desc += "" }
if modifiers.contains(.option) { desc += "" }
if modifiers.contains(.shift) {
// Only when Shift is main key we distinguish L/R.
if code == 0x3c {
desc += "" // Shift_R
} else {
desc += "" // Shift_L
}
// There could be Shift_L or Shift+Shift_L
// Only when Shift is main key we distinguish L/R.
if code == 0x3c {
desc += "" // Shift_R
} else if code == 0x38 || modifiers.contains(.shift) {
desc += "" // Shift_L
}
if modifiers.contains(.command) { desc += "" }
// Use uppercase to match menu.
Expand Down

0 comments on commit ca7669c

Please sign in to comment.