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] = {