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

Issue 149248: A quick fix for Issue 15852.... (Closed)

Created:
11 years, 5 months ago by Hironori Bono
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

A quick fix for Issue 15852. After a discussion in <http://crbug.com/15852>;, I noticed I wrongly understood the Dvorak and European keyboards. We should not use US layout for handling shortcut keys. To fix this problem, this change uses |event->hardware_keycode| only when WebKit::windowsKeyCodeForKeyEvent() returns 0. When we use the Hebrew (or Russian) layout, |event->keyval| becomes GDK_hebrew_* (or GDK_Cyrillic_*) and this function returns 0.) BUG=15852 "Incorrect keycode with dvorak keyboard layout on Linux" TEST=Open <http://www.asquare.net/javascript/tests/KeyCode.html>;, press 'x' of a dvorak keyboard, and its keyDown.keyCode becomes 88. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20369

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -9 lines) Patch
M webkit/api/src/gtk/WebInputEventFactory.cpp View 1 1 chunk +13 lines, -9 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Hironori Bono
11 years, 5 months ago (2009-07-08 09:02:50 UTC) #1
Evan Martin
11 years, 5 months ago (2009-07-08 14:35:30 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698