ncurses.cc: handle ascii del as backspace

This commit is contained in:
Maxime Coste 2012-12-09 14:31:19 +01:00
parent afc8ad77e8
commit 7d6a48f43a

View File

@ -254,7 +254,7 @@ Key NCursesUI::get_key()
}
else switch (c)
{
case KEY_BACKSPACE: return Key::Backspace;
case KEY_BACKSPACE: case 127: return Key::Backspace;
case KEY_UP: return Key::Up;
case KEY_DOWN: return Key::Down;
case KEY_LEFT: return Key::Left;