projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052ffae
)
add ^a and ^e keybindings
author
pancake
<nopcode.org>
Thu, 1 Apr 2010 17:10:41 +0000
(19:10 +0200)
committer
pancake
<nopcode.org>
Thu, 1 Apr 2010 17:10:41 +0000
(19:10 +0200)
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index fd9baaae6bfd82b7ee25aa39ceee50f85b4228c8..4c87d6a25204f44c87c4d85a6c1c74063bf66109 100644
(file)
--- 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;