Skip to content

Commit

Permalink
Merge pull request #125 from gpanders/ctrl-g-exit
Browse files Browse the repository at this point in the history
Cancel with Ctrl-G
  • Loading branch information
jhawthorn authored Dec 28, 2019
2 parents 25ebdd4 + 475003f commit 04c342c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fzy.1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Usage help.
.BR "ENTER"
Print the selected item to stdout and exit
.TP
.BR "Ctrl+c, Esc"
.BR "Ctrl+c, Ctrl+g, Esc"
Exit with status 1, without making a selection.
.TP
.BR "Up Arrow, Ctrl+p"
Expand Down
1 change: 1 addition & 0 deletions src/tty_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ static const keybinding_t keybindings[] = {{"\x1b", action_exit}, /* ESC *
{KEY_CTRL('I'), action_autocomplete}, /* TAB (C-I ) */
{KEY_CTRL('C'), action_exit}, /* C-C */
{KEY_CTRL('D'), action_exit}, /* C-D */
{KEY_CTRL('G'), action_exit}, /* C-G */
{KEY_CTRL('M'), action_emit}, /* CR */
{KEY_CTRL('P'), action_prev}, /* C-P */
{KEY_CTRL('N'), action_next}, /* C-N */
Expand Down

0 comments on commit 04c342c

Please sign in to comment.