diff options
| author | akbash <akbash@herdr.dev> | 2026-08-11 23:08:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-11 23:08:34 +0300 |
| commit | d004089dee8a51d2083fef1bf58ef66b2b166448 (patch) | |
| tree | 566bad4ae92bf6870b0751e7178d41a7004e37a8 /src/config | |
| parent | 3607453087fdc870b7c6aff5cf64b202f630c513 (diff) | |
fix: disambiguate shifted punctuation keybinds (#2676)
refs #2674
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Co-authored-by: Can Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/keybinds.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/keybinds.rs b/src/config/keybinds.rs index 79dc87e3..6cddd3ac 100644 --- a/src/config/keybinds.rs +++ b/src/config/keybinds.rs @@ -1437,8 +1437,8 @@ fn shifted_char_matches_expected( let KeyCode::Char(expected) = expected_code else { return false; }; - if shifted_codepoint.and_then(char::from_u32) == Some(expected) { - return true; + if let Some(shifted) = shifted_codepoint.and_then(char::from_u32) { + return shifted == expected; } matches!(actual_code, KeyCode::Char(actual) if actual == expected && is_shifted_punctuation(expected)) } |
