Add Control-k support to wimenu.

This commit is contained in:
Kris Maglione 2011-09-03 07:49:40 -04:00
parent 47bd576f59
commit 0d268397c5
4 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,7 @@ enum {
LBACKWARD,
LCHAR,
LCOMPLETE,
LDELETE,
LFIRST,
LFORWARD,
LHISTORY,

View File

@ -75,6 +75,7 @@ char *symtab[] = {
"backward",
"char",
"complete",
"delete",
"first",
"forward",
"history",

View File

@ -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

View File

@ -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;