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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user