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

Issue 348413003: Generate key event for deleteSurroundingText (Closed)

Created:
6 years, 6 months ago by guohui
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Generate key event for deleteSurroundingText Currently Chrome on android does not generate any key event when BACKSPACE key is pressed outside of composition, in other words, when AdapterInputConnection. deleteSurroundingText is called. It breaks websites who expects to always receive a KeyDown/KeyUp event when BACKSPACE key is pressed. This CL fixes the issue by generating key events in deleteSurroundingText. For more details please refer to the attached bug. BUG=184812 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279928

Patch Set 1 : #

Total comments: 2

Patch Set 2 : moved to ImeAdapter #

Total comments: 1

Patch Set 3 : send DEL keycode for single char deletion #

Patch Set 4 : do no send the keycode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
guohui
Hey, could you please review the CL? Thanks, Hui
6 years, 6 months ago (2014-06-23 23:02:41 UTC) #1
aurimas (slooooooooow)
https://codereview.chromium.org/348413003/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java File content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java (right): https://codereview.chromium.org/348413003/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java#newcode331 content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java:331: mImeAdapter.sendKeyEventWithKeyCode(KeyEvent.KEYCODE_UNKNOWN, I think we should move this additional logic ...
6 years, 6 months ago (2014-06-24 23:03:03 UTC) #2
guohui
https://codereview.chromium.org/348413003/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java File content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java (right): https://codereview.chromium.org/348413003/diff/60001/content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java#newcode331 content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java:331: mImeAdapter.sendKeyEventWithKeyCode(KeyEvent.KEYCODE_UNKNOWN, On 2014/06/24 23:03:03, aurimas wrote: > I think ...
6 years, 6 months ago (2014-06-25 17:50:33 UTC) #3
guohui
ping ted@ for owner review?
6 years, 6 months ago (2014-06-25 19:52:40 UTC) #4
guohui
ping ted@ for owner review?
6 years, 6 months ago (2014-06-25 19:52:41 UTC) #5
aurimas (slooooooooow)
LGTM after discussion offline that we will try to fix it differently after IME vs ...
6 years, 6 months ago (2014-06-25 19:54:27 UTC) #6
aurimas (slooooooooow)
On 2014/06/25 19:54:27, aurimas wrote: > LGTM after discussion offline that we will try to ...
6 years, 6 months ago (2014-06-25 20:22:38 UTC) #7
guohui
On 2014/06/25 20:22:38, aurimas wrote: > On 2014/06/25 19:54:27, aurimas wrote: > > LGTM after ...
6 years, 6 months ago (2014-06-25 20:28:15 UTC) #8
Ted C
one quick nit (still lgtm since Aurimas gave it one). https://chromiumcodereview.appspot.com/348413003/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://chromiumcodereview.appspot.com/348413003/diff/80001/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode413 ...
6 years, 6 months ago (2014-06-25 20:41:51 UTC) #9
aurimas (slooooooooow)
still lgtm
6 years, 6 months ago (2014-06-25 23:00:57 UTC) #10
guohui
The CQ bit was checked by guohui@chromium.org
6 years, 6 months ago (2014-06-25 23:01:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/guohui@chromium.org/348413003/160001
6 years, 6 months ago (2014-06-25 23:05:46 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 06:28:18 UTC) #13
Message was sent while issue was closed.
Change committed as 279928

Powered by Google App Engine
This is Rietveld 408576698