Permalink
Browse files

Add Control-k support to wimenu.

  • Loading branch information...
1 parent 53c1bb5 commit 75c71d0915d1c03487125548cd7a8ec09c715c66 Kris Maglione committed Sep 3, 2011
Showing with 7 additions and 0 deletions.
  1. +1 −0 cmd/menu/dat.h
  2. +1 −0 cmd/menu/keys.c
  3. +1 −0 cmd/menu/keys.txt
  4. +4 −0 cmd/menu/menu.c
View
@@ -29,6 +29,7 @@ enum {
LBACKWARD,
LCHAR,
LCOMPLETE,
+ LDELETE,
LFIRST,
LFORWARD,
LHISTORY,
View
@@ -75,6 +75,7 @@ char *symtab[] = {
"backward",
"char",
"complete",
+ "delete",
"first",
"forward",
"history",
View
@@ -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
@@ -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;

0 comments on commit 75c71d0

Please sign in to comment.