Bug 1020139 part.3 Map special keys on Sun keyboard on Android and Gonk r=cpeterson
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 04 Feb 2015 11:01:19 +0900
changeset 254484 67f185a86c4b744623c050c1d05ff3c8e014e30d
parent 254483 b0cbb45a4ee7105cad99eca9a2764f5294f4c040
child 254485 375121e292af7c62b64c0ef975ea24370557857d
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpeterson
bugs1020139
milestone38.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 1020139 part.3 Map special keys on Sun keyboard on Android and Gonk r=cpeterson
widget/NativeKeyToDOMCodeName.h
--- a/widget/NativeKeyToDOMCodeName.h
+++ b/widget/NativeKeyToDOMCodeName.h
@@ -410,17 +410,17 @@ CODE_MAP_ANDROID(Delete,                
 
 CODE_MAP_WIN(End,                       0xE04F)
 CODE_MAP_MAC(End,                       kVK_End)
 CODE_MAP_X11(End,                       0x0073)
 CODE_MAP_ANDROID(End,                   0x006B)
 
 CODE_MAP_MAC(Help,                      kVK_Help) // Insert key on PC keyboard
 CODE_MAP_X11(Help,                      0x0092) // Help key on Sun keyboard
-CODE_MAP_ANDROID(Help,                  0x008A) // on Sun keyboard
+CODE_MAP_ANDROID(Help,                  0x008A) // Help key on Sun keyboard
 
 CODE_MAP_WIN(Home,                      0xE047)
 CODE_MAP_MAC(Home,                      kVK_Home)
 CODE_MAP_X11(Home,                      0x006E)
 CODE_MAP_ANDROID(Home,                  0x0066)
 
 CODE_MAP_WIN(Insert,                    0xE052)
 CODE_MAP_X11(Insert,                    0x0076)
@@ -784,29 +784,38 @@ CODE_MAP_X11(VolumeUp,                  
 CODE_MAP_ANDROID(VolumeUp,              0x0073) // side of body, not on keyboard
 
 // CODE_MAP_WIN(WakeUp) // not available?
 CODE_MAP_X11(WakeUp,                    0x0097)
 CODE_MAP_ANDROID(WakeUp,                0x008F)
 
 // Legacy editing keys
 CODE_MAP_X11(Again,                     0x0089) // Again key on Sun keyboard
+CODE_MAP_ANDROID(Again,                 0x0081) // Again key on Sun keyboard
 
 CODE_MAP_X11(Copy,                      0x008D) // Copy key on Sun keyboard
+CODE_MAP_ANDROID(Copy,                  0x0085) // Copy key on Sun keyboard
 
 CODE_MAP_X11(Cut,                       0x0091) // Cut key on Sun keyboard
+CODE_MAP_ANDROID(Cut,                   0x0089) // Cut key on Sun keyboard
 
 CODE_MAP_X11(Find,                      0x0090) // Find key on Sun keyboard
+CODE_MAP_ANDROID(Find,                  0x0088) // Find key on Sun keyboard
 
 CODE_MAP_X11(Open,                      0x008E) // Open key on Sun keyboard
+CODE_MAP_ANDROID(Open,                  0x0086) // Open key on Sun keyboard
 
 CODE_MAP_X11(Paste,                     0x008F) // Paste key on Sun keyboard
+CODE_MAP_ANDROID(Paste,                 0x0087) // Paste key on Sun keyboard
 
 CODE_MAP_X11(Props,                     0x008A) // Props key on Sun keyboard
+CODE_MAP_ANDROID(Props,                 0x0082) // Props key on Sun keyboard
 
 CODE_MAP_X11(Select,                    0x008C) // Front key on Sun keyboard
+CODE_MAP_ANDROID(Select,                0x0084) // Front key on Sun keyboard
 
 CODE_MAP_X11(Undo,                      0x008B) // Undo key on Sun keyboard
+CODE_MAP_ANDROID(Undo,                  0x0083) // Undo key on Sun keyboard
 
 #undef CODE_MAP_WIN
 #undef CODE_MAP_MAC
 #undef CODE_MAP_X11
 #undef CODE_MAP_ANDROID