diff options
-rw-r--r-- | dmenu.1 | 2 | ||||
-rw-r--r-- | main.c | 4 |
2 files changed, 1 insertions, 5 deletions
@@ -41,7 +41,7 @@ Confirm selection and quit (print the selected item to stdout). | |||
41 | Shift-Return | 41 | Shift-Return |
42 | Confirm selection and quit (print the text in the input field to stdout). | 42 | Confirm selection and quit (print the text in the input field to stdout). |
43 | .TP | 43 | .TP |
44 | Escape (Control-[) | 44 | Escape |
45 | Quit without selecting an item. | 45 | Quit without selecting an item. |
46 | .TP | 46 | .TP |
47 | Backspace (Control-h) | 47 | Backspace (Control-h) |
@@ -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) { |