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

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

Issue 808793005: Add numpad keys to ui::LocatedToNonLocatedKeyboardCode() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x444048-1-located
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/keycodes/keyboard_code_conversion.cc
diff --git a/ui/events/keycodes/keyboard_code_conversion.cc b/ui/events/keycodes/keyboard_code_conversion.cc
index 0f85c3ecfeaf56b42dafab1703e83cc06ac4004f..b71dd6f0b94bd8600a55d596e574e0442e4f0c37 100644
--- a/ui/events/keycodes/keyboard_code_conversion.cc
+++ b/ui/events/keycodes/keyboard_code_conversion.cc
@@ -281,6 +281,26 @@ KeyboardCode LocatedToNonLocatedKeyboardCode(KeyboardCode key_code) {
case VKEY_LMENU:
case VKEY_RMENU:
return VKEY_MENU;
+ case VKEY_NUMPAD0:
+ return VKEY_0;
+ case VKEY_NUMPAD1:
+ return VKEY_1;
+ case VKEY_NUMPAD2:
+ return VKEY_2;
+ case VKEY_NUMPAD3:
+ return VKEY_3;
+ case VKEY_NUMPAD4:
+ return VKEY_4;
+ case VKEY_NUMPAD5:
+ return VKEY_5;
+ case VKEY_NUMPAD6:
+ return VKEY_6;
+ case VKEY_NUMPAD7:
+ return VKEY_7;
+ case VKEY_NUMPAD8:
+ return VKEY_8;
+ case VKEY_NUMPAD9:
+ return VKEY_9;
default:
return key_code;
}
« 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