Skip to content

Commit 50c5579

Browse files
authored
Merge pull request #3469 from Tyriar/3467
Disable emoji ime when screenReaderMode is on
2 parents be7fcbe + 5a65fd9 commit 50c5579

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)