add ^G escape keybinding
authorKarl F <karlf@thep.lu.se>
Thu, 19 Jan 2012 22:52:17 +0000 (22:52 +0000)
committerKarl F <karlf@thep.lu.se>
Thu, 19 Jan 2012 22:52:17 +0000 (22:52 +0000)
dmenu.1
dmenu.c

diff --git a/dmenu.1 b/dmenu.1
index 0784cd9..3a0f4ef 100644 (file)
--- a/dmenu.1
+++ b/dmenu.1
@@ -107,6 +107,9 @@ End
 C\-f
 Right
 .TP
+C\-g
+Escape
+.TP
 C\-h
 Backspace
 .TP
diff --git a/dmenu.c b/dmenu.c
index 4ea95f8..fad4443 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -251,6 +251,7 @@ keypress(XKeyEvent *ev) {
                case XK_d: ksym = XK_Delete;    break;
                case XK_e: ksym = XK_End;       break;
                case XK_f: ksym = XK_Right;     break;
+               case XK_g: ksym = XK_Escape;    break;
                case XK_h: ksym = XK_BackSpace; break;
                case XK_i: ksym = XK_Tab;       break;
                case XK_j: ksym = XK_Return;    break;