Browse code

Merge pull request #125 from gpanders/ctrl-g-exit

Cancel with Ctrl-G

John Hawthorn authored on 28/12/2019 07:01:53 • GitHub committed on 28/12/2019 07:01:53
Showing 2 changed files

... ...
@@ -54,7 +54,7 @@ Usage help.
54 54
 .BR "ENTER"
55 55
 Print the selected item to stdout and exit
56 56
 .TP
57
-.BR "Ctrl+c, Esc"
57
+.BR "Ctrl+c, Ctrl+g, Esc"
58 58
 Exit with status 1, without making a selection.
59 59
 .TP
60 60
 .BR "Up Arrow, Ctrl+p"
... ...
@@ -291,6 +291,7 @@ static const keybinding_t keybindings[] = {{"\x1b", action_exit},       /* ESC *
291 291
 					   {KEY_CTRL('I'), action_autocomplete}, /* TAB (C-I ) */
292 292
 					   {KEY_CTRL('C'), action_exit},	 /* C-C */
293 293
 					   {KEY_CTRL('D'), action_exit},	 /* C-D */
294
+					   {KEY_CTRL('G'), action_exit},	 /* C-G */
294 295
 					   {KEY_CTRL('M'), action_emit},	 /* CR */
295 296
 					   {KEY_CTRL('P'), action_prev},	 /* C-P */
296 297
 					   {KEY_CTRL('N'), action_next},	 /* C-N */