From 13d84970d3a8b10e62d2e86a356760252d0cce21 Mon Sep 17 00:00:00 2001 From: nabijaczleweli Date: Sat, 15 Oct 2016 17:48:29 +0200 Subject: [PATCH] Correctly handle backspace in pancurses backend on Windows Closes #81 --- src/backend/curses/pan.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/curses/pan.rs b/src/backend/curses/pan.rs index 41be59b..94a153e 100644 --- a/src/backend/curses/pan.rs +++ b/src/backend/curses/pan.rs @@ -101,9 +101,8 @@ impl backend::Backend for Concrete { // TODO: wait for a very short delay. If more keys are // pipelined, it may be an escape sequence. pancurses::Input::Character('\u{1b}') => Event::Key(Key::Esc), - pancurses::Input::Character('\u{7f}') => { - Event::Key(Key::Backspace) - } + pancurses::Input::Character('\u{7f}') | + pancurses::Input::Character('\u{8}') => Event::Key(Key::Backspace), pancurses::Input::Character(c) if 32 <= (c as u32) && (c as u32) <= 255 => { Event::Char(utf8::read_char(c as u8, || {