summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordeepak.m1 <deepak.m1@samsung.com>2014-11-24 22:11:36 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-25 06:11:58 +0000
commitd1d74981ce7baa010996c82a7b3423d06af466f1 (patch)
tree9b773e167c7450fd1d7f2b886ff2d21d2e951090
parentb27713e1dd922d7501860506a281901b6a47bfb8 (diff)
downloadchromium_src-d1d74981ce7baa010996c82a7b3423d06af466f1.zip
chromium_src-d1d74981ce7baa010996c82a7b3423d06af466f1.tar.gz
chromium_src-d1d74981ce7baa010996c82a7b3423d06af466f1.tar.bz2
Preserve IME state when clearing the selection
When a paste or cut operation is performed in an editable region, and the action bar is dismissed, the IME state should be preserved. Ensure this by always using the editable region bit when clearing the selection upon action bar dismissal. BUG=435810 Review URL: https://codereview.chromium.org/747773003 Cr-Commit-Position: refs/heads/master@{#305594}
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 8ab6670..d447ca8 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -1327,7 +1327,7 @@ public class ContentViewCore
}
private void clearUserSelection() {
- if (isSelectionEditable()) {
+ if (mFocusedNodeEditable) {
if (mInputConnection != null) {
int selectionEnd = Selection.getSelectionEnd(mEditable);
mInputConnection.setSelection(selectionEnd, selectionEnd);