diff --git a/src/winio.c b/src/winio.c index 7237b8ac..8a5d70a3 100644 --- a/src/winio.c +++ b/src/winio.c @@ -667,7 +667,7 @@ int parse_kbinput(WINDOW *win) #endif /* Slang doesn't support KEY_CANCEL. */ case KEY_CANCEL: - return first_sc_for(currmenu, do_cancel)->keycode; + return sc_seq_or(do_cancel, 0x03); #endif #ifdef KEY_SUSPEND #ifdef KEY_SSUSPEND