diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index 812e1612..cbd38eba 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -620,6 +620,8 @@ Optional NCursesUI::get_next_key() return Key::Backspace; if (c == 127) // when it's not backspace return Key::Delete; + if (c == 27) + return Key::Escape; return c; }; auto parse_key = [&convert](unsigned char c) -> Key {