DescriptionCopying text closes the keyboard and the text input gets unfocused, forcing virtual keyboard is getting closed.
During copy operation inside an editable field, we are clearing the selection, which is clearing the cursor
as well. In turn there is no rootEditable Element for the selection and Keyboard type is sending as None and hence IME is dismissing by ImeAdapater. This is preventing user to edit the input field continuously even after a copy operation.
To prevent this keyboard hiding issue, we are collapsing the selection to end instead of clearing the selection, so that the cursor and caret will be visible and keyboard will be ON and user can continue editing.
BUG=225090
Changes curresponding to this has been landed at Chromium side with https://codereview.chromium.org/330623002/
Hence closing this issue.
Patch Set 1 #Patch Set 2 : Updated code based on self review. #
Total comments: 8
Patch Set 3 : Fixed review comments #
Total comments: 2
Patch Set 4 : Added test for CollapseToEnd change. #Patch Set 5 : Updated self review changes. #Patch Set 6 : Kept the test case only for Android build. #Patch Set 7 : Removed FrameSelection changes and making use of existing APIs for serving the requirement. #
Messages
Total messages: 25 (0 generated)
|