summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorpancake <nopcode.org>2010-04-01 19:10:41 +0200
committerpancake <nopcode.org>2010-04-01 19:10:41 +0200
commit29686bd1b8513ba7512ab089cfdbc7df44986409 (patch)
tree9b90597a84a39141c823d8345836391f384757ed /dmenu.c
parent052ffae1924a2760baa32f41e01de82e73e0bc5e (diff)
add ^a and ^e keybindings
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dmenu.c b/dmenu.c
index fd9baaa..4c87d6a 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -394,6 +394,14 @@ kpress(XKeyEvent * e) {
switch (ksym) {
default: /* ignore other control sequences */
return;
+ case XK_a:
+ case XK_A:
+ cursor = 0;
+ break;
+ case XK_e:
+ case XK_E:
+ cursor = strlen(text);
+ break;
case XK_c:
case XK_C:
ksym = XK_Escape;