Bug 865566 Support "Separator" key on Numpad of Brazilian ABNT keyboard and JIS keyboard for Mac r=jimm
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 01 May 2013 08:19:04 +0900
changeset 130424 70e8b142cbe0
parent 130423 47cc840de9d1
child 130425 696e20fda14b
push id24618
push userryanvm@gmail.com
push date2013-05-01 14:49 +0000
treeherdermozilla-central@4ff1e574e509 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm
bugs865566
milestone23.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 865566 Support "Separator" key on Numpad of Brazilian ABNT keyboard and JIS keyboard for Mac r=jimm
widget/shared/NativeKeyToDOMKeyName.h
widget/windows/KeyboardLayout.h
--- a/widget/shared/NativeKeyToDOMKeyName.h
+++ b/widget/shared/NativeKeyToDOMKeyName.h
@@ -434,16 +434,17 @@ KEY_MAP_ANDROID (Esc, AKEYCODE_ESCAPE)
 KEY_MAP_ANDROID (Exit, AKEYCODE_HOME)
 
 // Zoom
 KEY_MAP_WIN     (Zoom, VK_ZOOM)
 KEY_MAP_QT      (Zoom, Qt::Key_Zoom)
 
 // Separator
 KEY_MAP_WIN     (Separator, VK_SEPARATOR)
+KEY_MAP_WIN     (Separator, VK_ABNT_C2) // This is on Brazilian keyboard.
 KEY_MAP_COCOA   (Separator, kVK_JIS_KeypadComma)
 KEY_MAP_GTK     (Separator, GDK_KP_Separator)
 KEY_MAP_ANDROID (Separator, AKEYCODE_NUMPAD_COMMA)
 
 // Spacebar
 KEY_MAP_WIN     (Spacebar, VK_SPACE)
 KEY_MAP_COCOA   (Spacebar, kVK_Space)
 KEY_MAP_GTK     (Spacebar, GDK_space)
--- a/widget/windows/KeyboardLayout.h
+++ b/widget/windows/KeyboardLayout.h
@@ -15,16 +15,20 @@
 
 #define VK_OEM_1                0xBA   // ';:' for US
 #define VK_OEM_PLUS             0xBB   // '+' any country
 #define VK_OEM_COMMA            0xBC
 #define VK_OEM_MINUS            0xBD   // '-' any country
 #define VK_OEM_PERIOD           0xBE
 #define VK_OEM_2                0xBF
 #define VK_OEM_3                0xC0
+// '/?' for Brazilian (ABNT)
+#define VK_ABNT_C1              0xC1
+// Separator in Numpad for Brazilian (ABNT) or JIS keyboard for Mac.
+#define VK_ABNT_C2              0xC2
 #define VK_OEM_4                0xDB
 #define VK_OEM_5                0xDC
 #define VK_OEM_6                0xDD
 #define VK_OEM_7                0xDE
 #define VK_OEM_8                0xDF
 #define VK_OEM_102              0xE2
 #define VK_OEM_CLEAR            0xFE