@@ -41,7 +41,7 @@ Confirm selection and quit (print the selected item to stdout). | |||||
Shift-Return | Shift-Return | ||||
Confirm selection and quit (print the text in the input field to stdout). | Confirm selection and quit (print the text in the input field to stdout). | ||||
.TP | .TP | ||||
Escape (Control-[) | |||||
Escape | |||||
Quit without selecting an item. | Quit without selecting an item. | ||||
.TP | .TP | ||||
Backspace (Control-h) | Backspace (Control-h) | ||||
@@ -174,16 +174,12 @@ kpress(XKeyEvent * e) | |||||
case XK_h: | case XK_h: | ||||
ksym = XK_BackSpace; | ksym = XK_BackSpace; | ||||
break; | break; | ||||
case XK_U: | |||||
case XK_u: | case XK_u: | ||||
text[0] = 0; | text[0] = 0; | ||||
match(text); | match(text); | ||||
drawmenu(); | drawmenu(); | ||||
return; | return; | ||||
break; | break; | ||||
case XK_bracketleft: | |||||
ksym = XK_Escape; | |||||
break; | |||||
} | } | ||||
} | } | ||||
switch(ksym) { | switch(ksym) { | ||||