Skip to content

Commit 5087aa0

Browse files
Nishil Shahmeta-codesync[bot]
authored andcommitted
HWInput: Add Play/Pause Support (#56426)
Summary: Pull Request resolved: #56426 Adds Channel Play/Pause events to HWInput. Changelog: [Android][Added] - Channel play/pause hardware events. Reviewed By: Abbondanzo Differential Revision: D100621746 fbshipit-source-id: b3a5616569f0b097e0e1226a8deb927212cdab20
1 parent e4f0509 commit 5087aa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactAndroidHWInputDeviceHelper.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ internal class ReactAndroidHWInputDeviceHelper {
8080
KeyEvent.KEYCODE_DPAD_CENTER to "select",
8181
KeyEvent.KEYCODE_ENTER to "select",
8282
KeyEvent.KEYCODE_SPACE to "select",
83+
KeyEvent.KEYCODE_MEDIA_PLAY to "play",
84+
KeyEvent.KEYCODE_MEDIA_PAUSE to "pause",
8385
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE to "playPause",
8486
KeyEvent.KEYCODE_MEDIA_REWIND to "rewind",
8587
KeyEvent.KEYCODE_MEDIA_FAST_FORWARD to "fastForward",

0 commit comments

Comments
 (0)