Skip to content

Commit

Permalink
Fix for PR 1041 - add check for key_value != KEY_ESC (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
mckellygit authored Dec 23, 2020
1 parent 4b342f1 commit a24d48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ get_input(int prompt_position, struct key *key)
* ASCII value.
*/
if (KEY_CTL('@') <= key_value && key_value <= KEY_CTL('_') &&
key_value != KEY_RETURN && key_value != KEY_TAB) {
key_value != KEY_RETURN && key_value != KEY_TAB && key_value != KEY_ESC) {
key->modifiers.control = 1;
key_value = key_value | 0x40;
}
Expand Down

0 comments on commit a24d48e

Please sign in to comment.