Skip to content

Commit

Permalink
Selection popup is present even after focus is changed.
Browse files Browse the repository at this point in the history
Existing selection handles should be cleared when
focus is changed from ContentView to URL.The issue
seems happening because the selection is null.So,
I have added the functionality to clear the handles
even if selection is empty.

BUG=397041

Review URL: https://codereview.chromium.org/413143003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285940 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
sayan.nayak@samsung.com committed Jul 28, 2014
1 parent 072ec21 commit d49ed1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,7 @@ public void onFocusChanged(boolean gainFocus) {
hideImeIfNeeded();
cancelRequestToScrollFocusedEditableNodeIntoView();
hidePastePopup();
hideTextHandles();
}
if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore, gainFocus);
}
Expand Down

0 comments on commit d49ed1c

Please sign in to comment.