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

Side by Side Diff: ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.cc

Issue 959923002: Fix CapsLock remapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.h" 5 #include "ui/events/ozone/layout/xkb/xkb_keyboard_code_conversion.h"
6 6
7 #include "ui/events/keycodes/dom3/dom_key.h" 7 #include "ui/events/keycodes/dom3/dom_key.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 return DomKey::F23; 176 return DomKey::F23;
177 case XKB_KEY_F24: 177 case XKB_KEY_F24:
178 return DomKey::F24; 178 return DomKey::F24;
179 case XKB_KEY_Shift_L: 179 case XKB_KEY_Shift_L:
180 case XKB_KEY_Shift_R: 180 case XKB_KEY_Shift_R:
181 return DomKey::SHIFT; 181 return DomKey::SHIFT;
182 case XKB_KEY_Control_L: 182 case XKB_KEY_Control_L:
183 case XKB_KEY_Control_R: 183 case XKB_KEY_Control_R:
184 return DomKey::CONTROL; 184 return DomKey::CONTROL;
185 case XKB_KEY_Caps_Lock: 185 case XKB_KEY_Caps_Lock:
186 case XKB_KEY_XF86Launch7:
186 return DomKey::CAPS_LOCK; 187 return DomKey::CAPS_LOCK;
187 case XKB_KEY_Meta_L: 188 case XKB_KEY_Meta_L:
188 case XKB_KEY_Meta_R: 189 case XKB_KEY_Meta_R:
189 return DomKey::META; 190 return DomKey::META;
190 case XKB_KEY_Alt_L: 191 case XKB_KEY_Alt_L:
191 case XKB_KEY_Alt_R: 192 case XKB_KEY_Alt_R:
192 return DomKey::ALT; 193 return DomKey::ALT;
193 case XKB_KEY_Super_L: 194 case XKB_KEY_Super_L:
194 case XKB_KEY_Super_R: 195 case XKB_KEY_Super_R:
195 return DomKey::OS; 196 return DomKey::OS;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 case XKB_KEY_dead_belowcomma: 439 case XKB_KEY_dead_belowcomma:
439 return 0x0806; // combining comma below 440 return 0x0806; // combining comma below
440 case XKB_KEY_dead_currency: 441 case XKB_KEY_dead_currency:
441 return 0x0164; // currency sign 442 return 0x0164; // currency sign
442 default: 443 default:
443 return 0; 444 return 0;
444 } 445 }
445 } 446 }
446 447
447 } // namespace ui 448 } // namespace ui
OLDNEW
« ui/events/ozone/evdev/keyboard_evdev.cc ('K') | « ui/events/ozone/layout/layout_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698