Skip to content

Commit

Permalink
VT flavor did not recognize the Escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed May 22, 2020
1 parent b172fcf commit ab9f416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vt/pdckbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ static int xlate_vt_codes( const int *c, const int count)
KEY_SRIGHT, 5, '[', '1', ';', '2', 'C',
KEY_SDOWN, 5, '[', '1', ';', '2', 'B',
KEY_SLEFT, 5, '[', '1', ';', '2', 'D',
27, 0,
0 };
int i, rval = -1;
const int *tptr;
Expand Down Expand Up @@ -305,6 +304,8 @@ int PDC_get_key( void)
if( rval == ALT_LBRACKET && check_key( NULL))
rval = -1;
}
if( !count) /* Escape hit */
rval = 27;
count--;
if( rval == KEY_MOUSE)
{
Expand Down

0 comments on commit ab9f416

Please sign in to comment.