Treat <c-h> as backspace in ncurses ui

Fixes #1030
This commit is contained in:
Maxime Coste 2017-01-10 13:35:10 +00:00
parent 9f0bca53c4
commit 37fbe6c6eb

View File

@ -537,6 +537,8 @@ Optional<Key> NCursesUI::get_next_key()
return {Key::Return}; return {Key::Return};
if (c == control('i')) if (c == control('i'))
return {Key::Tab}; return {Key::Tab};
if (c == control('h'))
return {Key::Backspace};
if (c == control('z')) if (c == control('z'))
{ {
raise(SIGTSTP); raise(SIGTSTP);