Pattern for matching keyboard events. More...
Public Member Functions | |
| bool | Matches (KeyMsg msg) |
| Returns true if msg matches this pattern. | |
Static Public Member Functions | |
| static KeyPattern | Of (ConsoleKey key) |
| Match the key with any modifier combination. | |
| static KeyPattern | Plain (ConsoleKey key) |
| Match the key with no modifiers pressed. | |
| static KeyPattern | WithAlt (ConsoleKey key) |
| Match Alt + key (Shift and Ctrl are wildcards). | |
| static KeyPattern | WithCtrl (ConsoleKey key) |
| Match Ctrl + key (Shift and Alt are wildcards). | |
| static KeyPattern | WithShift (ConsoleKey key) |
| Match Shift + key (Alt and Ctrl are wildcards). | |
Pattern for matching keyboard events.
Null modifier fields act as wildcards (match regardless of that modifier's state).