Merge pull request #3574 from Tyriar/clean_dead_key

Clear unprocessed dead key state on input or press
This commit is contained in:
Daniel Imms
2021-12-10 10:15:24 -08:00
committed by GitHub
+8
View File
@@ -1169,6 +1169,10 @@ export class Terminal extends CoreTerminal implements ITerminal {
this._keyPressHandled = true;
// The key was handled so clear the dead key state, otherwise certain keystrokes like arrow
// keys could be ignored
this._unprocessedDeadKey = false;
return true;
}
@@ -1186,6 +1190,10 @@ export class Terminal extends CoreTerminal implements ITerminal {
return false;
}
// The key was handled so clear the dead key state, otherwise certain keystrokes like arrow
// keys could be ignored
this._unprocessedDeadKey = false;
const text = ev.data;
this.coreService.triggerDataEvent(text, true);