mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Merge pull request #83 from nabijaczleweli/master
Correctly handle backspace in pancurses backend on Windows
This commit is contained in:
commit
6a5dd2f38b
@ -101,9 +101,8 @@ impl backend::Backend for Concrete {
|
|||||||
// TODO: wait for a very short delay. If more keys are
|
// TODO: wait for a very short delay. If more keys are
|
||||||
// pipelined, it may be an escape sequence.
|
// pipelined, it may be an escape sequence.
|
||||||
pancurses::Input::Character('\u{1b}') => Event::Key(Key::Esc),
|
pancurses::Input::Character('\u{1b}') => Event::Key(Key::Esc),
|
||||||
pancurses::Input::Character('\u{7f}') => {
|
pancurses::Input::Character('\u{7f}') |
|
||||||
Event::Key(Key::Backspace)
|
pancurses::Input::Character('\u{8}') => Event::Key(Key::Backspace),
|
||||||
}
|
|
||||||
pancurses::Input::Character(c) if 32 <= (c as u32) &&
|
pancurses::Input::Character(c) if 32 <= (c as u32) &&
|
||||||
(c as u32) <= 255 => {
|
(c as u32) <= 255 => {
|
||||||
Event::Char(utf8::read_char(c as u8, || {
|
Event::Char(utf8::read_char(c as u8, || {
|
||||||
|
Loading…
Reference in New Issue
Block a user