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

Issue 7019007: Update the X11 keycodes when keys are remapped. (Closed)

Created:
9 years, 7 months ago by sadrul
Modified:
8 years, 1 month ago
CC:
chromium-reviews, davemoore+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Update the X11 keycodes when keys are remapped. BUG=none TEST=Used xmodmap to change the keycodes of F8/F9 keys. They continued to work to control volume.

Patch Set 1 #

Total comments: 4

Patch Set 2 : unify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -21 lines) Patch
M base/message_pump_glib_x.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system_key_event_listener.cc View 1 4 chunks +50 lines, -19 lines 0 comments Download
M views/focus/accelerator_handler_touch.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
sadrul
9 years, 7 months ago (2011-05-17 06:55:56 UTC) #1
Evan Martin
Do you expect to remap the keycodes at runtime? I feel like for the platform ...
9 years, 7 months ago (2011-05-17 16:44:46 UTC) #2
sadrul
On 2011/05/17 16:44:46, Evan Martin wrote: > Do you expect to remap the keycodes at ...
9 years, 7 months ago (2011-05-17 16:58:18 UTC) #3
Daniel Erat
http://codereview.chromium.org/7019007/diff/1/chrome/browser/chromeos/system_key_event_listener.cc File chrome/browser/chromeos/system_key_event_listener.cc (right): http://codereview.chromium.org/7019007/diff/1/chrome/browser/chromeos/system_key_event_listener.cc#newcode194 chrome/browser/chromeos/system_key_event_listener.cc:194: struct { Mind unifying this with the code in ...
9 years, 7 months ago (2011-05-17 18:33:16 UTC) #4
sadrul
http://codereview.chromium.org/7019007/diff/1/chrome/browser/chromeos/system_key_event_listener.cc File chrome/browser/chromeos/system_key_event_listener.cc (right): http://codereview.chromium.org/7019007/diff/1/chrome/browser/chromeos/system_key_event_listener.cc#newcode194 chrome/browser/chromeos/system_key_event_listener.cc:194: struct { On 2011/05/17 18:33:17, Daniel Erat wrote: > ...
9 years, 7 months ago (2011-05-17 19:39:55 UTC) #5
Evan Martin
Just to be clear about my objection: unless we have a definite user for this ...
9 years, 7 months ago (2011-05-17 19:42:00 UTC) #6
Daniel Erat
9 years, 7 months ago (2011-05-17 19:57:28 UTC) #7
On 2011/05/17 19:42:00, Evan Martin wrote:
> Just to be clear about my objection: unless we have a definite user for this
> extra code, I suggest dropping it.  Does ChromeOS run xmodmap?

No, it uses XKB.  I'm assuming that GTK+ is XKB-aware, which means that we'll
probably see XkbMapNotify events instead of MappingNotify events (this could be
tested by changing the keyboard layout in Chrome OS).  See "12.1.2 Effects of
Xkb on MappingNotify Events" in http://www.xfree86.org/current/XKBlib.pdf.

(Like I mentioned in http://codereview.chromium.org/7011005/, this probably
isn't critical since I doubt we'll remap these keys.)

Powered by Google App Engine
This is Rietveld 408576698