Disable emoji ime when screenReaderMode is on

Fixes #3467
This commit is contained in:
Daniel Imms
2021-09-10 09:42:19 -07:00
parent be7fcbe485
commit 5a65fd9c6a
+3 -1
View File
@@ -1180,7 +1180,9 @@ export class Terminal extends CoreTerminal implements ITerminal {
* @param ev The input event to be handled.
*/
protected _inputEvent(ev: InputEvent): boolean {
if (ev.data && ev.inputType === 'insertText') {
// 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 (this._keyPressHandled) {
return false;
}