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

Side by Side Diff: ui/events/keycodes/keyboard_code_conversion_xkb.cc

Issue 2626713002: [Linux DomKey] Map |Eisu_Shift| and |Eisu_toggle| to "Alphanumeric" (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/keycodes/keyboard_code_conversion_xkb.h" 5 #include "ui/events/keycodes/keyboard_code_conversion_xkb.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/events/keycodes/dom/dom_key.h" 8 #include "ui/events/keycodes/dom/dom_key.h"
9 9
10 #ifndef XK_dead_greek 10 #ifndef XK_dead_greek
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 case XKB_KEY_Zenkaku: 55 case XKB_KEY_Zenkaku:
56 return DomKey::ZENKAKU; 56 return DomKey::ZENKAKU;
57 case XKB_KEY_Hankaku: 57 case XKB_KEY_Hankaku:
58 return DomKey::HANKAKU; 58 return DomKey::HANKAKU;
59 case XKB_KEY_Zenkaku_Hankaku: 59 case XKB_KEY_Zenkaku_Hankaku:
60 return DomKey::ZENKAKU_HANKAKU; 60 return DomKey::ZENKAKU_HANKAKU;
61 case XKB_KEY_Kana_Lock: 61 case XKB_KEY_Kana_Lock:
62 return DomKey::KANA_MODE; 62 return DomKey::KANA_MODE;
63 case XKB_KEY_Eisu_Shift: 63 case XKB_KEY_Eisu_Shift:
64 case XKB_KEY_Eisu_toggle: 64 case XKB_KEY_Eisu_toggle:
65 return DomKey::EISU; 65 return DomKey::ALPHANUMERIC;
66 case XKB_KEY_Hangul: 66 case XKB_KEY_Hangul:
67 return DomKey::HANGUL_MODE; 67 return DomKey::HANGUL_MODE;
68 case XKB_KEY_Hangul_Hanja: 68 case XKB_KEY_Hangul_Hanja:
69 return DomKey::HANJA_MODE; 69 return DomKey::HANJA_MODE;
70 case XKB_KEY_Codeinput: 70 case XKB_KEY_Codeinput:
71 return DomKey::CODE_INPUT; 71 return DomKey::CODE_INPUT;
72 case XKB_KEY_SingleCandidate: 72 case XKB_KEY_SingleCandidate:
73 return DomKey::SINGLE_CANDIDATE; 73 return DomKey::SINGLE_CANDIDATE;
74 case XKB_KEY_MultipleCandidate: 74 case XKB_KEY_MultipleCandidate:
75 return DomKey::ALL_CANDIDATES; 75 return DomKey::ALL_CANDIDATES;
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 471 }
472 472
473 DomKey XKeySymToDomKey(xkb_keysym_t keysym, base::char16 character) { 473 DomKey XKeySymToDomKey(xkb_keysym_t keysym, base::char16 character) {
474 DomKey dom_key = NonPrintableXKeySymToDomKey(keysym); 474 DomKey dom_key = NonPrintableXKeySymToDomKey(keysym);
475 if (dom_key != DomKey::NONE) 475 if (dom_key != DomKey::NONE)
476 return dom_key; 476 return dom_key;
477 return DomKey::FromCharacter(character); 477 return DomKey::FromCharacter(character);
478 } 478 }
479 479
480 } // namespace ui 480 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698