mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Do not report a cursor location if there is no active selection (#4427)
Fixes https://github.com/flutter/flutter/issues/13398
This commit is contained in:
parent
1cdaab88e3
commit
a2f488ac7f
@ -140,8 +140,8 @@ public class TextInputPlugin implements MethodCallHandler {
|
||||
outAttrs.imeOptions |= enterAction;
|
||||
|
||||
InputConnectionAdaptor connection = new InputConnectionAdaptor(view, mClient, mFlutterChannel, mEditable);
|
||||
outAttrs.initialSelStart = Math.max(Selection.getSelectionStart(mEditable), 0);
|
||||
outAttrs.initialSelEnd = Math.max(Selection.getSelectionEnd(mEditable), 0);
|
||||
outAttrs.initialSelStart = Selection.getSelectionStart(mEditable);
|
||||
outAttrs.initialSelEnd = Selection.getSelectionEnd(mEditable);
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user