-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
James Brundage
authored and
James Brundage
committed
Sep 22, 2024
1 parent
784bc6a
commit 012fcf0
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
# Matches Keyboard Shortcuts | ||
# Matches Keyboard Shortcuts | ||
# Keyboard Shortcuts are a <Modifiers> followed by a Key | ||
(?<Modifiers>(?>(?<Alt>Option|Alt|LeftAltPressed|RightAltPressed|LeftAlt|RightAlt) # An <Alt> modifier | ||
|(?<Control>Control|Ctrl|LeftCtrlPressed|LeftCtrl|RightCtrlPressd|RightCtrl) # A <Control> Modifier | ||
|(?<Command>EnhancedKey|Command|Cmd|LeftCmd|RightCmd|Windows|Win|Apple|OpenApple) # A <Command> Modifier (the Windows or Apple key) | ||
|(?<Shift>ShiftPressed|Shift|LeftShift|RightShift) # A <Shift> Modifier | ||
)\+){0,3} # 0-3 modifiers are followed by a key. The Key can be | ||
(?>(?<Key>.$) # A single-character key | ||
|(?<VirtualKey>\{[^\}]+\}{1,2}) # A virtual key (enclosed in {}s) | ||
|(?<KeyName>[^\,]+) # A key name | ||
(?<Modifiers>(?> | ||
(?<Alt>Option|Alt|LeftAltPressed|RightAltPressed|LeftAlt|RightAlt) # An <Alt> modifier | ||
| | ||
(?<Control>Control|Ctrl|LeftCtrlPressed|LeftCtrl|RightCtrlPressd|RightCtrl) # A <Control> Modifier | ||
| | ||
(?<Command>EnhancedKey|Command|Cmd|LeftCmd|RightCmd|Windows|Win|Apple|OpenApple) # A <Command> Modifier (the Windows or Apple key) | ||
| | ||
(?<Shift>ShiftPressed|Shift|LeftShift|RightShift) # A <Shift> Modifier | ||
)\+){0,3} # 0-3 modifiers are followed by a key. The Key can be | ||
(?> | ||
(?<Key>.$) # A single-character key | ||
| | ||
(?<VirtualKey>\{[^\}]+\}{1,2}) # A virtual key (enclosed in {}s) | ||
| | ||
(?<KeyName>[^\,]+) # A key name | ||
) |