Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Issue 1534163002: Ensure input connection to be created on pressing next button (Closed)

Created:
5 years ago by Changwan Ryu
Modified:
5 years ago
CC:
android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure input connection to be created on pressing next button We have recently introduced a logic to return null input connection in View#onCreateInputConnection() to handle the physical keyboard case better. (https://codereview.chromium.org/1362603002) However, when the user is focused on a EditText and jumps to WebView using 'next' button on an input method, then the user cannot type a character because a real input connection was never created. WebView cannot distinguish the following two cases: - Gaining focus with autofocus=true (for which we intentionally do not show keyboard) - Gaining focus through 'next' button Before that CL, we were simply creating NONE type input connection at the beginning even when input form was not focused, which caused the original physical keyboard issue. In this CL, we will keep an input connection *whenever* currently focused node is editable, regardless of showIme value. Some tests should change accordingly: now input connection may not be null even when keyboard remains hidden. Also I'm adding a WebView test to prevent a regression. BUG=569556 Committed: https://crrev.com/945f5e295dbf508e8dbd6a6ab86a6459bda59637 Cr-Commit-Position: refs/heads/master@{#366583}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -9 lines) Patch
A android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java View 1 1 chunk +107 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 3 chunks +2 lines, -6 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Changwan Ryu
5 years ago (2015-12-18 06:52:30 UTC) #2
aelias_OOO_until_Jul13
lgtm
5 years ago (2015-12-19 20:32:46 UTC) #3
sgurun-gerrit only
On 2015/12/19 20:32:46, aelias wrote: > lgtm lgtm
5 years ago (2015-12-21 23:53:02 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1534163002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1534163002/20001
5 years ago (2015-12-22 08:33:55 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-22 09:49:19 UTC) #8
commit-bot: I haz the power
5 years ago (2015-12-22 09:50:20 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/945f5e295dbf508e8dbd6a6ab86a6459bda59637
Cr-Commit-Position: refs/heads/master@{#366583}

Powered by Google App Engine
This is Rietveld 408576698