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

Unified Diff: ui/base/keycodes/keyboard_code_conversion.cc

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to ash/ime/ Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/ime/mock_input_method.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/keycodes/keyboard_code_conversion.cc
diff --git a/ui/base/keycodes/keyboard_code_conversion.cc b/ui/base/keycodes/keyboard_code_conversion.cc
index 0016f6d78cbecdf5b95225c90ce70c323d4df796..26ddd87c13be36e3df5c444874ba3e6dd1d9c9ec 100644
--- a/ui/base/keycodes/keyboard_code_conversion.cc
+++ b/ui/base/keycodes/keyboard_code_conversion.cc
@@ -56,6 +56,10 @@ uint16 GetCharacterFromKeyCode(KeyboardCode key_code, int flags) {
}
}
+ // For IME support.
+ if (key_code == ui::VKEY_PROCESSKEY)
+ return 0xE5;
+
// Normal characters
if (key_code >= VKEY_0 && key_code <= VKEY_9) {
return shift ? ")!@#$%^&*("[key_code - VKEY_0] :
« no previous file with comments | « ui/base/ime/mock_input_method.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698