From 21d0ce60267ad947c081d3d3fba401c859f06dd2 Mon Sep 17 00:00:00 2001 From: Ainesh Chatterjee Date: Fri, 25 Sep 2026 10:04:54 -0700 Subject: fix: preserve shift on ctrl+shift+letter for legacy panes (#4597) Panes whose app has not enabled the kitty keyboard protocol received ctrl+shift+letter as the same C0 byte as ctrl+letter. Encode the chord as CSI-u instead, matching Ghostty's legacy encoder. refs #4581 Co-authored-by: ain3sh --- src/pane/terminal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pane/terminal.rs') diff --git a/src/pane/terminal.rs b/src/pane/terminal.rs index 53d8e32d..d0b9d3ca 100644 --- a/src/pane/terminal.rs +++ b/src/pane/terminal.rs @@ -4959,7 +4959,7 @@ mod tests { let encoded = pane.encode_terminal_key( crate::input::TerminalKey::new( crossterm::event::KeyCode::Char('a'), - crossterm::event::KeyModifiers::CONTROL | crossterm::event::KeyModifiers::SHIFT, + crossterm::event::KeyModifiers::CONTROL, ), crate::input::KeyboardProtocol::Legacy, ); -- cgit v1.2.3