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
1 changed files with 6 additions and 0 deletions

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;