aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.12
-rw-r--r--main.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/dmenu.1 b/dmenu.1
index db919db..926b559 100644
--- a/dmenu.1
+++ b/dmenu.1
@@ -41,7 +41,7 @@ Confirm selection and quit (print the selected item to stdout).
41Shift-Return 41Shift-Return
42Confirm selection and quit (print the text in the input field to stdout). 42Confirm selection and quit (print the text in the input field to stdout).
43.TP 43.TP
44Escape (Control-[) 44Escape
45Quit without selecting an item. 45Quit without selecting an item.
46.TP 46.TP
47Backspace (Control-h) 47Backspace (Control-h)
diff --git a/main.c b/main.c
index 561f88f..3458fd5 100644
--- a/main.c
+++ b/main.c
@@ -174,16 +174,12 @@ kpress(XKeyEvent * e)
174 case XK_h: 174 case XK_h:
175 ksym = XK_BackSpace; 175 ksym = XK_BackSpace;
176 break; 176 break;
177 case XK_U:
178 case XK_u: 177 case XK_u:
179 text[0] = 0; 178 text[0] = 0;
180 match(text); 179 match(text);
181 drawmenu(); 180 drawmenu();
182 return; 181 return;
183 break; 182 break;
184 case XK_bracketleft:
185 ksym = XK_Escape;
186 break;
187 } 183 }
188 } 184 }
189 switch(ksym) { 185 switch(ksym) {