Bug 1112712 - DOM key and code mapping for simple phone hardware keys. r=masayuki
☠☠ backed out by 825f49208b80 ☠ ☠
authorhansu9866@gmail.com <hansu9866@gmail.com>
Thu, 01 Oct 2015 16:13:00 +0200
changeset 266076 02a7211c3ac8112de132dd96c24b062e2dc78d47
parent 266075 0d52d0d26e28d40db3c54acca7629f4454c58518
child 266077 34ffab1aa3046b47b7cb7755b04b40b6443b8949
push id66108
push userkwierso@gmail.com
push dateMon, 05 Oct 2015 20:11:28 +0000
treeherdermozilla-inbound@9652663133d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki
bugs1112712
milestone44.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 1112712 - DOM key and code mapping for simple phone hardware keys. r=masayuki commit eb0f93fdeaba83493ad231b62e8d27793e1a67ca Author: Hansu Kim <hansu9866@gmail.com> Bug 1112712 DOM key and code mapping for simple phone hardware keys Change-Id: I8b37b82e374ce287af334061eaaa49f1b9f350b8
dom/events/KeyNameList.h
widget/NativeKeyToDOMKeyName.h
--- a/dom/events/KeyNameList.h
+++ b/dom/events/KeyNameList.h
@@ -26,16 +26,19 @@
 DEFINE_KEYNAME_WITH_SAME_NAME(Unidentified)
 
 /******************************************************************************
  * Our Internal Key Values (must have "Moz" prefix)
  *****************************************************************************/
 DEFINE_KEYNAME_INTERNAL(PrintableKey, "MozPrintableKey")
 DEFINE_KEYNAME_INTERNAL(HomeScreen, "MozHomeScreen")
 DEFINE_KEYNAME_INTERNAL(CameraFocusAdjust, "MozCameraFocusAdjust")
+DEFINE_KEYNAME_INTERNAL(PhoneCall, "MozPhoneCall")
+DEFINE_KEYNAME_INTERNAL(SoftLeft, "MozSoftLeft")
+DEFINE_KEYNAME_INTERNAL(SoftRight, "MozSoftRight")
 
 /******************************************************************************
  * Modifier Keys
  *****************************************************************************/
 DEFINE_KEYNAME_WITH_SAME_NAME(Alt)
 DEFINE_KEYNAME_WITH_SAME_NAME(AltGraph)
 DEFINE_KEYNAME_WITH_SAME_NAME(CapsLock)
 DEFINE_KEYNAME_WITH_SAME_NAME(Control)
--- a/widget/NativeKeyToDOMKeyName.h
+++ b/widget/NativeKeyToDOMKeyName.h
@@ -1300,16 +1300,25 @@ KEY_MAP_QT      (ZoomToggle, Qt::Key_Zoo
 
 // HomeScreen
 KEY_MAP_ANDROID (HomeScreen, AKEYCODE_HOME)
 
 // Focus
 KEY_MAP_QT      (CameraFocusAdjust, Qt::Key_CameraFocus)
 KEY_MAP_ANDROID (CameraFocusAdjust, AKEYCODE_FOCUS)
 
+// PhoneCall
+KEY_MAP_ANDROID (PhoneCall, AKEYCODE_CALL)
+
+// SoftLeft
+KEY_MAP_ANDROID (SoftLeft, AKEYCODE_SOFT_LEFT)
+
+// SoftRight
+KEY_MAP_ANDROID (SoftRight, AKEYCODE_SOFT_RIGHT)
+
 #undef KEY_MAP_WIN
 #undef KEY_MAP_WIN_JPN
 #undef KEY_MAP_WIN_KOR
 #undef KEY_MAP_WIN_OTH
 #undef KEY_MAP_WIN_CMD
 #undef KEY_MAP_COCOA
 #undef KEY_MAP_GTK
 #undef KEY_MAP_QT