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

View File

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