Clear unprocessed dead key state on input or press

Fixes #3573
This commit is contained in:
Daniel Imms
2021-12-09 13:14:43 -08:00
parent cde4277e84
commit b7c3397471
+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);