1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix terminal escape keystroke not sending escape byte.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-11-03 22:31:17 +01:00
parent a77fb74fd9
commit 51e13b9357

View file

@ -382,6 +382,12 @@ void LogTerminal::ProcessKeystroke(int kbkey)
if ( kbkey < 0 )
return;
if ( kbkey == KBKEY_ESC )
{
ProcessByte('\e');
return;
}
const struct kbkey_sequence* seq = LookupKeystrokeSequence(kbkey);
if ( !seq )
return;