From d004089dee8a51d2083fef1bf58ef66b2b166448 Mon Sep 17 00:00:00 2001 From: akbash Date: Tue, 11 Aug 2026 23:08:34 +0300 Subject: 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 --- src/config/keybinds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config') 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)) } -- cgit v1.2.3