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

Issue 20046: Home and End keys should not be processed by the autocomplete popup (Closed)

Created:
11 years, 10 months ago by jcampan
Modified:
9 years, 7 months ago
Reviewers:
Matt Perry
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Autocomplete popup should not handle the Home and end key messages, they should be left to the text edit to proceed. BUG=4874 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9164

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -12 lines) Patch
M webkit/glue/webview_impl.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/webview_impl.cc View 1 2 3 5 chunks +28 lines, -12 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jcampan
11 years, 10 months ago (2009-02-04 18:29:00 UTC) #1
Matt Perry
http://codereview.chromium.org/20046/diff/11/1005 File webkit/glue/webview_impl.cc (right): http://codereview.chromium.org/20046/diff/11/1005#newcode512 Line 512: event.key_code == VKEY_HOME || event.key_code == VKEY_END) { ...
11 years, 10 months ago (2009-02-04 19:07:35 UTC) #2
jcampan
http://codereview.chromium.org/20046/diff/11/1005 File webkit/glue/webview_impl.cc (right): http://codereview.chromium.org/20046/diff/11/1005#newcode512 Line 512: event.key_code == VKEY_HOME || event.key_code == VKEY_END) { ...
11 years, 10 months ago (2009-02-04 19:14:46 UTC) #3
Matt Perry
11 years, 10 months ago (2009-02-04 19:49:47 UTC) #4
LGTM

http://codereview.chromium.org/20046/diff/11/1005
File webkit/glue/webview_impl.cc (right):

http://codereview.chromium.org/20046/diff/11/1005#newcode512
Line 512: event.key_code == VKEY_HOME || event.key_code == VKEY_END) {
On 2009/02/04 19:14:46, jcampan wrote:
> On 2009/02/04 19:07:36, Matt Perry wrote:
> > Couldn't the popup itself just return false from isInterestedInEventForKey
for
> > these event types?
> It could, but since for the drop-down case we want the keys to be processed by
> the popup, it would be yet another setting on the popup on which keys it is
> interested in.
> Since all the logic of when to show/hide the popup is already in webview_impl,
I
> thought this would be simpler to have it done here.
> 

Oh I see, this doesn't apply to select popups.  Fair enough.

Powered by Google App Engine
This is Rietveld 408576698