We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beeebca commit 1c1aac0Copy full SHA for 1c1aac0
src/browser/input/CompositionHelper.ts
@@ -72,6 +72,8 @@ export class CompositionHelper {
72
*/
73
public compositionstart(): void {
74
this._isComposing = true;
75
+ // It's important to use the selection here instead of textarea length to avoid conflicts with
76
+ // screen reader mode
77
const start = this._textarea.selectionStart ?? this._textarea.value.length;
78
const end = this._textarea.selectionEnd ?? start;
79
this._compositionPosition.start = Math.min(start, end);
0 commit comments