Bug 1025982 Fix the mapping of KeyboardEvent.code value of Digit0 to Digit9 keys on Windows r=jimm, a=sylvestre
authorMasayuki Nakano <masayuki@d-toybox.com>
Fri, 20 Jun 2014 11:19:31 +0900
changeset 208247 27de3ab6ed74c83611a77ad2f766214be67ea4b9
parent 208246 46b6814727ba0bf96a603b05c50f88a19952183d
child 208248 3bc732b3a41eec2b5165f9df0e9cde5ae2fba17c
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjimm, sylvestre
bugs1025982
milestone32.0a2
Bug 1025982 Fix the mapping of KeyboardEvent.code value of Digit0 to Digit9 keys on Windows r=jimm, a=sylvestre
widget/shared/NativeKeyToDOMCodeName.h
--- a/widget/shared/NativeKeyToDOMCodeName.h
+++ b/widget/shared/NativeKeyToDOMCodeName.h
@@ -76,62 +76,62 @@ CODE_MAP_MAC(BracketRight,              
 CODE_MAP_X11(BracketRight,              0x0023)
 CODE_MAP_ANDROID(BracketRight,          0x001B)
 
 CODE_MAP_WIN(Comma,                     0x0033)
 CODE_MAP_MAC(Comma,                     kVK_ANSI_Comma)
 CODE_MAP_X11(Comma,                     0x003B)
 CODE_MAP_ANDROID(Comma,                 0x00033)
 
-CODE_MAP_WIN(Digit0,                    0x0002)
+CODE_MAP_WIN(Digit0,                    0x000B)
 CODE_MAP_MAC(Digit0,                    kVK_ANSI_0)
 CODE_MAP_X11(Digit0,                    0x0013)
 CODE_MAP_ANDROID(Digit0,                0x000B)
 
-CODE_MAP_WIN(Digit1,                    0x0003)
+CODE_MAP_WIN(Digit1,                    0x0002)
 CODE_MAP_MAC(Digit1,                    kVK_ANSI_1)
 CODE_MAP_X11(Digit1,                    0x000A)
 CODE_MAP_ANDROID(Digit1,                0x0002)
 
-CODE_MAP_WIN(Digit2,                    0x0004)
+CODE_MAP_WIN(Digit2,                    0x0003)
 CODE_MAP_MAC(Digit2,                    kVK_ANSI_2)
 CODE_MAP_X11(Digit2,                    0x000B)
 CODE_MAP_ANDROID(Digit2,                0x0003)
 
-CODE_MAP_WIN(Digit3,                    0x0005)
+CODE_MAP_WIN(Digit3,                    0x0004)
 CODE_MAP_MAC(Digit3,                    kVK_ANSI_3)
 CODE_MAP_X11(Digit3,                    0x000C)
 CODE_MAP_ANDROID(Digit3,                0x0004)
 
-CODE_MAP_WIN(Digit4,                    0x0006)
+CODE_MAP_WIN(Digit4,                    0x0005)
 CODE_MAP_MAC(Digit4,                    kVK_ANSI_4)
 CODE_MAP_X11(Digit4,                    0x000D)
 CODE_MAP_ANDROID(Digit4,                0x0005)
 
-CODE_MAP_WIN(Digit5,                    0x0007)
+CODE_MAP_WIN(Digit5,                    0x0006)
 CODE_MAP_MAC(Digit5,                    kVK_ANSI_5)
 CODE_MAP_X11(Digit5,                    0x000E)
 CODE_MAP_ANDROID(Digit5,                0x0006)
 
-CODE_MAP_WIN(Digit6,                    0x0008)
+CODE_MAP_WIN(Digit6,                    0x0007)
 CODE_MAP_MAC(Digit6,                    kVK_ANSI_6)
 CODE_MAP_X11(Digit6,                    0x000F)
 CODE_MAP_ANDROID(Digit6,                0x0007)
 
-CODE_MAP_WIN(Digit7,                    0x0009)
+CODE_MAP_WIN(Digit7,                    0x0008)
 CODE_MAP_MAC(Digit7,                    kVK_ANSI_7)
 CODE_MAP_X11(Digit7,                    0x0010)
 CODE_MAP_ANDROID(Digit7,                0x0008)
 
-CODE_MAP_WIN(Digit8,                    0x000A)
+CODE_MAP_WIN(Digit8,                    0x0009)
 CODE_MAP_MAC(Digit8,                    kVK_ANSI_8)
 CODE_MAP_X11(Digit8,                    0x0011)
 CODE_MAP_ANDROID(Digit8,                0x0009)
 
-CODE_MAP_WIN(Digit9,                    0x000B)
+CODE_MAP_WIN(Digit9,                    0x000A)
 CODE_MAP_MAC(Digit9,                    kVK_ANSI_9)
 CODE_MAP_X11(Digit9,                    0x0012)
 CODE_MAP_ANDROID(Digit9,                0x000A)
 
 CODE_MAP_WIN(Equal,                     0x000D)
 CODE_MAP_MAC(Equal,                     kVK_ANSI_Equal)
 CODE_MAP_X11(Equal,                     0x0015)
 CODE_MAP_ANDROID(Equal,                 0x000D)