Do not report a cursor location if there is no active selection (flutter/engine#4427)
Fixes https://github.com/flutter/flutter/issues/13398
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user