~nloomans/ft_select

0c6c7f179ef523bd01553f69e486f4c7c45d38d2 — Noah Loomans 3 years ago 0eb31b5
quit when pressing escape

Reference:

If the user presses esc key, the program musn’t send anything to the
shell and it has to exit properly.
1 files changed, 1 insertions(+), 0 deletions(-)

M src/handle.c
M src/handle.c => src/handle.c +1 -0
@@ 100,6 100,7 @@ const t_action						g_handle_key_map[READ_TYPE_AMOUNT][256] = {
		['l'] = action_right,
		[' '] = action_select,
		['\x7f'] = action_delete,
		['\x1b'] = action_quit,
		['\n'] = action_confirm,
	},
	[READ_TYPE_ESC] = {