Skip to content

Commit 5a6b514

Browse files
committed
Fix Alt+Shift+Char for crossterm backend
Before this patch `cargo run --example key_codes --features crossterm-backend`: AltChar('e') Char('E') After: AltChar('e') AltChar('E')
1 parent 4de6053 commit 5a6b514

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cursive/src/backends/crossterm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ fn translate_event(event: CKeyEvent) -> Option<Event> {
101101
code: KeyCode::Char(c),
102102
..
103103
} => Event::AltChar(c),
104+
CKeyEvent {
105+
modifiers: ALT_SHIFT,
106+
code: KeyCode::Char(c),
107+
..
108+
} => Event::AltChar(c),
104109
CKeyEvent {
105110
modifiers: KeyModifiers::SHIFT,
106111
code: KeyCode::Char(c),

0 commit comments

Comments
 (0)