Skip to content

Commit 5a65fd9

Browse files
committed
Disable emoji ime when screenReaderMode is on
Fixes #3467
1 parent be7fcbe commit 5a65fd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/browser/Terminal.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,9 @@ export class Terminal extends CoreTerminal implements ITerminal {
11801180
* @param ev The input event to be handled.
11811181
*/
11821182
protected _inputEvent(ev: InputEvent): boolean {
1183-
if (ev.data && ev.inputType === 'insertText') {
1183+
// Only support emoji IMEs when screen reader mode is disabled as the event must bubble up to
1184+
// support reading out character input which can doubling up input characters
1185+
if (ev.data && ev.inputType === 'insertText' && !this.optionsService.options.screenReaderMode) {
11841186
if (this._keyPressHandled) {
11851187
return false;
11861188
}

0 commit comments

Comments
 (0)