input: prevent duplicate IME input on Linux - fixes #3533

This commit is contained in:
Eugene Pankov
2021-10-31 12:27:41 +01:00
parent d32c6db967
commit 5a4e88dc51
+1 -1
View File
@@ -1182,7 +1182,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
protected _inputEvent(ev: InputEvent): boolean {
// Only support emoji IMEs when screen reader mode is disabled as the event must bubble up to
// support reading out character input which can doubling up input characters
if (ev.data && ev.inputType === 'insertText' && !this.optionsService.options.screenReaderMode) {
if (ev.data && ev.inputType === 'insertText' && !ev.composed && !this.optionsService.options.screenReaderMode) {
if (this._keyPressHandled) {
return false;
}