Skip to content

Commit ab9f416

Browse files
committed
VT flavor did not recognize the Escape key
1 parent b172fcf commit ab9f416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vt/pdckbd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ static int xlate_vt_codes( const int *c, const int count)
225225
KEY_SRIGHT, 5, '[', '1', ';', '2', 'C',
226226
KEY_SDOWN, 5, '[', '1', ';', '2', 'B',
227227
KEY_SLEFT, 5, '[', '1', ';', '2', 'D',
228-
27, 0,
229228
0 };
230229
int i, rval = -1;
231230
const int *tptr;
@@ -305,6 +304,8 @@ int PDC_get_key( void)
305304
if( rval == ALT_LBRACKET && check_key( NULL))
306305
rval = -1;
307306
}
307+
if( !count) /* Escape hit */
308+
rval = 27;
308309
count--;
309310
if( rval == KEY_MOUSE)
310311
{

0 commit comments

Comments
 (0)