Skip to content

Commit bb33c10

Browse files
havlasmefacebook-github-bot
authored andcommitted
Add INFO, and MENU key event support to Android TV (#31884)
Summary: Add INFO, and MENU key event support to Android TV ## Changelog [Android] [Added] - Add INFO, and MENU key event support to Android TV Pull Request resolved: #31884 Test Plan: We develop application that utilizes aforementioned events, we've made a build against react-native fork with these changes and it was working as expected. These changes just add 2 more button mappings, so I don't think it requires some extensive testing. Reviewed By: mdvacca Differential Revision: D29821996 Pulled By: yungsters fbshipit-source-id: 5f97c29c9c29d6e3bafed352b8b65f0cb02f3f1d
1 parent cc13060 commit bb33c10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.java

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public class ReactAndroidHWInputDeviceHelper {
3636
.put(KeyEvent.KEYCODE_DPAD_RIGHT, "right")
3737
.put(KeyEvent.KEYCODE_DPAD_DOWN, "down")
3838
.put(KeyEvent.KEYCODE_DPAD_LEFT, "left")
39+
.put(KeyEvent.KEYCODE_INFO, "info")
40+
.put(KeyEvent.KEYCODE_MENU, "menu")
3941
.build();
4042

4143
/**

0 commit comments

Comments
 (0)