aboutsummaryrefslogtreecommitdiff
path: root/src/pane/terminal.rs
diff options
context:
space:
mode:
authorAinesh Chatterjee <ainesh@factory.ai>2026-09-25 10:04:54 -0700
committerGitHub <noreply@github.com>2026-09-25 20:04:54 +0300
commit21d0ce60267ad947c081d3d3fba401c859f06dd2 (patch)
tree3adac47ca21709aa124596c6da03bda129c0360b /src/pane/terminal.rs
parent8d95e9bd45338c43091e04ef0c976086bb09163a (diff)
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 <ainesh.chatterjee@gmail.com>
Diffstat (limited to 'src/pane/terminal.rs')
-rw-r--r--src/pane/terminal.rs2
1 files changed, 1 insertions, 1 deletions
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,
);