aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl F <karlf@thep.lu.se>2012-01-19 22:52:17 +0000
committerKarl F <karlf@thep.lu.se>2012-01-19 22:52:17 +0000
commit50145384c821bb05f5497e80a006fee2db9f145b (patch)
tree6293cb89ee95cd72fa19d4863abdacbb28431965
parent7707111c109f105b8b404c3250dca879bb94407c (diff)
add ^G escape keybinding
-rw-r--r--dmenu.13
-rw-r--r--dmenu.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/dmenu.1 b/dmenu.1
index 0784cd9..3a0f4ef 100644
--- a/dmenu.1
+++ b/dmenu.1
@@ -107,6 +107,9 @@ End
107C\-f 107C\-f
108Right 108Right
109.TP 109.TP
110C\-g
111Escape
112.TP
110C\-h 113C\-h
111Backspace 114Backspace
112.TP 115.TP
diff --git a/dmenu.c b/dmenu.c
index 4ea95f8..fad4443 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -251,6 +251,7 @@ keypress(XKeyEvent *ev) {
251 case XK_d: ksym = XK_Delete; break; 251 case XK_d: ksym = XK_Delete; break;
252 case XK_e: ksym = XK_End; break; 252 case XK_e: ksym = XK_End; break;
253 case XK_f: ksym = XK_Right; break; 253 case XK_f: ksym = XK_Right; break;
254 case XK_g: ksym = XK_Escape; break;
254 case XK_h: ksym = XK_BackSpace; break; 255 case XK_h: ksym = XK_BackSpace; break;
255 case XK_i: ksym = XK_Tab; break; 256 case XK_i: ksym = XK_Tab; break;
256 case XK_j: ksym = XK_Return; break; 257 case XK_j: ksym = XK_Return; break;