On empty input, return CUSTOM_INPUT so to distinquish between cancel and empty.

Fix #322
This commit is contained in:
Dave Davenport 2016-01-25 08:58:56 +01:00
parent 784244a35b
commit e416753cb3
1 changed files with 1 additions and 1 deletions

View File

@ -1417,7 +1417,7 @@ static void menu_mainloop_iter ( MenuState *state, XEvent *ev )
} }
else{ else{
// Nothing entered and nothing selected. // Nothing entered and nothing selected.
state->retv = MENU_CANCEL; state->retv = MENU_CUSTOM_INPUT;
} }
if ( shift ) { if ( shift ) {
state->retv |= MENU_SHIFT; state->retv |= MENU_SHIFT;