Bug 1020139 part.2 Map special keys on Sun keyboard on Linux r=karlt
authorMasayuki Nakano <masayuki@d-toybox.com>
Wed, 04 Feb 2015 11:01:19 +0900
changeset 227370 b0cbb45a4ee7105cad99eca9a2764f5294f4c040
parent 227369 0870b9735ceab4101245be52642a55eebf3b7073
child 227371 67f185a86c4b744623c050c1d05ff3c8e014e30d
push id28228
push usercbook@mozilla.com
push dateWed, 04 Feb 2015 13:35:14 +0000
treeherdermozilla-central@b7c8165d691e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskarlt
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.2 Map special keys on Sun keyboard on Linux r=karlt
widget/NativeKeyToDOMCodeName.h
--- a/widget/NativeKeyToDOMCodeName.h
+++ b/widget/NativeKeyToDOMCodeName.h
@@ -409,17 +409,17 @@ CODE_MAP_X11(Delete,                    
 CODE_MAP_ANDROID(Delete,                0x006F)
 
 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) // on Sun keyboard
+CODE_MAP_X11(Help,                      0x0092) // Help key on Sun keyboard
 CODE_MAP_ANDROID(Help,                  0x008A) // 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)
@@ -782,12 +782,31 @@ CODE_MAP_WIN(VolumeUp,                  
 CODE_MAP_MAC(VolumeUp,                  kVK_VolumeUp) // not available?
 CODE_MAP_X11(VolumeUp,                  0x007B)
 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_X11(Copy,                      0x008D) // Copy key on Sun keyboard
+
+CODE_MAP_X11(Cut,                       0x0091) // Cut key on Sun keyboard
+
+CODE_MAP_X11(Find,                      0x0090) // Find key on Sun keyboard
+
+CODE_MAP_X11(Open,                      0x008E) // Open key on Sun keyboard
+
+CODE_MAP_X11(Paste,                     0x008F) // Paste key on Sun keyboard
+
+CODE_MAP_X11(Props,                     0x008A) // Props key on Sun keyboard
+
+CODE_MAP_X11(Select,                    0x008C) // Front key on Sun keyboard
+
+CODE_MAP_X11(Undo,                      0x008B) // Undo key on Sun keyboard
+
 #undef CODE_MAP_WIN
 #undef CODE_MAP_MAC
 #undef CODE_MAP_X11
 #undef CODE_MAP_ANDROID