tty PICK_NONE menus

When testing the menu/incomplete map situation I noticed that <return>
didn't work to dismiss the "list autopickup exceptions" menu.  <space>
or <escape> was required.  That was clearly intentional but doesn't
seem reasonable.  Make <return> behave the same for PICK_NONE as it
does for other menu modes in tty and as it does for other interfaces.
This commit is contained in:
PatR
2022-02-12 07:28:40 -08:00
parent 87f08dbeba
commit c862f2a9ca
2 changed files with 4 additions and 6 deletions

View File

@@ -2103,12 +2103,8 @@ process_menu_window(winid window, struct WinDesc *cw)
case '\0': /* finished (commit) */
case '\n':
case '\r':
/* only finished if we are actually picking something */
if (cw->how != PICK_NONE) {
finished = TRUE;
break;
}
/* else fall through */
finished = TRUE;
break;
case ' ':
case MENU_NEXT_PAGE:
if (cw->npages > 0 && curr_page != cw->npages - 1) {