Skip to content

Commit

Permalink
Add INFO, and MENU key event support to Android TV (#31884)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
havlasme authored and facebook-github-bot committed Jul 23, 2021
1 parent cc13060 commit bb33c10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public class ReactAndroidHWInputDeviceHelper {
.put(KeyEvent.KEYCODE_DPAD_RIGHT, "right")
.put(KeyEvent.KEYCODE_DPAD_DOWN, "down")
.put(KeyEvent.KEYCODE_DPAD_LEFT, "left")
.put(KeyEvent.KEYCODE_INFO, "info")
.put(KeyEvent.KEYCODE_MENU, "menu")
.build();

/**
Expand Down

0 comments on commit bb33c10

Please sign in to comment.