wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 0d268397c51eed55df9a3af7a6f70dd8a838272f
parent 47bd576f594ee9beb403890d4fdb2d20675c2eaa
Author: Kris Maglione <kris@suckless.org>
Date:   Sat,  3 Sep 2011 07:49:40 -0400

Add Control-k support to wimenu.

Diffstat:
cmd/menu/dat.h | 1+
cmd/menu/keys.c | 1+
cmd/menu/keys.txt | 1+
cmd/menu/menu.c | 4++++
4 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/cmd/menu/dat.h b/cmd/menu/dat.h @@ -29,6 +29,7 @@ enum { LBACKWARD, LCHAR, LCOMPLETE, + LDELETE, LFIRST, LFORWARD, LHISTORY, diff --git a/cmd/menu/keys.c b/cmd/menu/keys.c @@ -75,6 +75,7 @@ char *symtab[] = { "backward", "char", "complete", + "delete", "first", "forward", "history", diff --git a/cmd/menu/keys.txt b/cmd/menu/keys.txt @@ -29,6 +29,7 @@ Control-h Kill char Control-Backspace Kill word Control-w Kill word Control-u Kill line +Control-k Delete line Tab Complete next Control-i Complete next diff --git a/cmd/menu/menu.c b/cmd/menu/menu.c @@ -288,6 +288,10 @@ kdown_event(Window *w, void *aux, XKeyEvent *e) { caret_delete(BACKWARD, amount); update_filter(true); break; + case LDELETE: + caret_delete(FORWARD, amount); + update_filter(true); + break; case LACCEPT: srv.running = false;