We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 18262c8 + 2285ac6 commit fd1e53cCopy full SHA for fd1e53c
src/browser/input/CompositionHelper.ts
@@ -76,7 +76,9 @@ export class CompositionHelper {
76
* @param ev The event.
77
*/
78
public compositionupdate(ev: Pick<CompositionEvent, 'data'>): void {
79
- this._compositionView.textContent = ev.data;
+ // Mark text as LTR, direction=rtl is used in CSS so the end of the text is followed for long
80
+ // compositions
81
+ this._compositionView.textContent = `\u200E${ev.data}\u200E`;
82
this.updateCompositionElements();
83
setTimeout(() => {
84
this._compositionPosition.end = this._textarea.value.length;
0 commit comments