Bug 1133741 - Add camera focus hardware button. r=masayuki

This commit is contained in:
Alexandre Lissy 2015-02-20 00:06:00 -05:00
parent 6b135c4dad
commit 53342df346
3 changed files with 5 additions and 1 deletions

View File

@ -30,6 +30,7 @@ DEFINE_KEYNAME_WITH_SAME_NAME(Unidentified)
*****************************************************************************/
DEFINE_KEYNAME_INTERNAL(PrintableKey, "MozPrintableKey")
DEFINE_KEYNAME_INTERNAL(HomeScreen, "MozHomeScreen")
DEFINE_KEYNAME_INTERNAL(CameraFocusAdjust, "MozCameraFocusAdjust")
/******************************************************************************
* Modifier Keys

View File

@ -1301,6 +1301,10 @@ KEY_MAP_QT (ZoomToggle, Qt::Key_Zoom)
// HomeScreen
KEY_MAP_ANDROID (HomeScreen, AKEYCODE_HOME)
// Focus
KEY_MAP_QT (CameraFocusAdjust, Qt::Key_CameraFocus)
KEY_MAP_ANDROID (CameraFocusAdjust, AKEYCODE_FOCUS)
#undef KEY_MAP_WIN
#undef KEY_MAP_WIN_JPN
#undef KEY_MAP_WIN_KOR

View File

@ -1375,7 +1375,6 @@ ConvertAndroidKeyCodeToKeyNameIndex(AndroidGeckoEvent& aAndroidGeckoEvent)
case AKEYCODE_ENDCALL:
case AKEYCODE_NUM: // XXX Not sure
case AKEYCODE_HEADSETHOOK:
case AKEYCODE_FOCUS:
case AKEYCODE_NOTIFICATION: // XXX Not sure
case AKEYCODE_PICTSYMBOLS: