diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-03 20:40:48 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-08-03 20:40:48 +0200 |
| commit | b921d97334d116e38cb9650c126ef8f3c8763713 (patch) | |
| tree | 888e6f99c55cd202c38e188433f7a4bb2eb15097 /src/config/keymap | |
| parent | f7c16781c0d68b8a20bc5d88d0040940459b903e (diff) | |
add shift modifier tag
Diffstat (limited to 'src/config/keymap')
| -rw-r--r-- | src/config/keymap/event_from_string.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/keymap/event_from_string.rs b/src/config/keymap/event_from_string.rs index 00179c5..663a254 100644 --- a/src/config/keymap/event_from_string.rs +++ b/src/config/keymap/event_from_string.rs @@ -59,6 +59,9 @@ pub fn event_from_string(s: String) -> Result<KeyEvent, String> { } else if inner.starts_with("a-") { inner = &inner[2..]; modifiers |= KeyModifiers::ALT; + } else if inner.starts_with("s-") { + inner = &inner[2..]; + modifiers |= KeyModifiers::SHIFT; } else { break; } |