Skip to content

Commit

Permalink
revert: Resolved issue with broken IME composing rect in Windows desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
CatHood0 committed Sep 22, 2024
1 parent 226543a commit 31191f9
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,9 @@ mixin RawEditorStateTextInputClientMixin on EditorState
_textInputConnection!.show();
}

TextRange _getComposingRange() {
if (_lastKnownRemoteTextEditingValue != null &&
_lastKnownRemoteTextEditingValue?.composing.isValid == true) {
return _lastKnownRemoteTextEditingValue!.composing;
} else if (textEditingValue.composing.isValid == true) {
return textEditingValue.composing;
} else {
return widget.controller.selection;
}
}

void _updateComposingRectIfNeeded() {
final composingRange = _getComposingRange();
final composingRange = _lastKnownRemoteTextEditingValue?.composing ??
textEditingValue.composing;
if (hasConnection) {
assert(mounted);
final offset = composingRange.isValid ? composingRange.start : 0;
Expand Down

0 comments on commit 31191f9

Please sign in to comment.