mirror of https://github.com/davatorium/rofi.git
On empty input, return CUSTOM_INPUT so to distinquish between cancel and empty.
Fix #322
This commit is contained in:
parent
784244a35b
commit
e416753cb3
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue