mirror of
https://codeberg.org/adnano/wmenu.git
synced 2026-02-05 04:06:27 -05:00
Add Ctrl-Backspace keybind
- It duplicates Ctrl-W, making it consistent with most apps.
This commit is contained in:
parent
8fe04a0c99
commit
2a0c48e400
1 changed files with 1 additions and 0 deletions
1
menu.c
1
menu.c
|
|
@ -519,6 +519,7 @@ void menu_keypress(struct menu *menu, enum wl_keyboard_key_state key_state,
|
|||
menu_invalidate(menu);
|
||||
return;
|
||||
case XKB_KEY_w:
|
||||
case XKB_KEY_BackSpace:
|
||||
// Delete word
|
||||
while (menu->cursor > 0 && menu->input[nextrune(menu, -1)] == ' ') {
|
||||
insert(menu, NULL, nextrune(menu, -1) - menu->cursor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue