Fix shift key not working for typing capital letters.

Was due to a change in crossterm's API behavior.
This commit is contained in:
Nathan Vegdahl 2023-10-25 00:23:40 +02:00
parent fa577c4c4d
commit b1391ebb35

View File

@ -373,6 +373,10 @@ impl TermUI {
code: KeyCode::Char(c),
modifiers: EMPTY_MOD,
..
} | KeyEvent {
code: KeyCode::Char(c),
modifiers: KeyModifiers::SHIFT,
..
}=> {
self.editor.insert_text_at_cursor(&c.to_string()[..]);
}