diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index be433ab5..bd185aa4 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -688,7 +688,7 @@ Optional NCursesUI::get_next_key() case '7': f = alt_ctrl; break; case '8': f = shift_alt_ctrl; break; } - if (f) + if (!f) { ungetch(c3); ungetch(c2); ungetch(c1); break;