Fix shift key not working for typing capital letters.
Was due to a change in crossterm's API behavior.
This commit is contained in:
parent
fa577c4c4d
commit
b1391ebb35
|
@ -373,6 +373,10 @@ impl TermUI {
|
||||||
code: KeyCode::Char(c),
|
code: KeyCode::Char(c),
|
||||||
modifiers: EMPTY_MOD,
|
modifiers: EMPTY_MOD,
|
||||||
..
|
..
|
||||||
|
} | KeyEvent {
|
||||||
|
code: KeyCode::Char(c),
|
||||||
|
modifiers: KeyModifiers::SHIFT,
|
||||||
|
..
|
||||||
}=> {
|
}=> {
|
||||||
self.editor.insert_text_at_cursor(&c.to_string()[..]);
|
self.editor.insert_text_at_cursor(&c.to_string()[..]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user