display dmenu multisel accurately
This commit is contained in:
parent
beafbc6458
commit
da22980093
1 changed files with 6 additions and 2 deletions
8
mew.c
8
mew.c
|
@ -613,9 +613,13 @@ keyboard_keypress(enum wl_keyboard_key_state state, xkb_keysym_t sym, int ctrl,
|
||||||
case XKB_KEY_Return:
|
case XKB_KEY_Return:
|
||||||
case XKB_KEY_KP_Enter:
|
case XKB_KEY_KP_Enter:
|
||||||
submit((sel && !shift) ? sel->text : text);
|
submit((sel && !shift) ? sel->text : text);
|
||||||
if (!ctrl && submit != exec_cmd)
|
if (!ctrl && submit != exec_cmd) {
|
||||||
running = 0;
|
running = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
if (sel)
|
||||||
|
sel->out = 1;
|
||||||
|
break;
|
||||||
case XKB_KEY_Right:
|
case XKB_KEY_Right:
|
||||||
case XKB_KEY_KP_Right:
|
case XKB_KEY_KP_Right:
|
||||||
if (text[cursor] != '\0') {
|
if (text[cursor] != '\0') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue