mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Fix backslash crash with blt backent (#492)
Pressing backslash would cause cursive to panic.
This commit is contained in:
parent
b75b5017e1
commit
69feb373e6
@ -455,7 +455,7 @@ fn blt_keycode_to_char(kc: KeyCode, shift: bool) -> char {
|
|||||||
KeyCode::RightBracket if shift => '}',
|
KeyCode::RightBracket if shift => '}',
|
||||||
KeyCode::RightBracket => ']',
|
KeyCode::RightBracket => ']',
|
||||||
KeyCode::Backslash if shift => '|',
|
KeyCode::Backslash if shift => '|',
|
||||||
KeyCode::Backspace => '\\',
|
KeyCode::Backslash => '\\',
|
||||||
KeyCode::Semicolon if shift => ':',
|
KeyCode::Semicolon if shift => ':',
|
||||||
KeyCode::Semicolon => ';',
|
KeyCode::Semicolon => ';',
|
||||||
KeyCode::Apostrophe if shift => '"',
|
KeyCode::Apostrophe if shift => '"',
|
||||||
|
Loading…
Reference in New Issue
Block a user