mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
HWInput: Add Play/Pause Support (#56426)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
1 parent
e4f0509973
commit
5087aa0dba
1 file changed
+2
+2
@@ -80,6 +80,8 @@ internal class ReactAndroidHWInputDeviceHelper {
|
||||
KeyEvent.KEYCODE_DPAD_CENTER to "select",
|
||||
KeyEvent.KEYCODE_ENTER to "select",
|
||||
KeyEvent.KEYCODE_SPACE to "select",
|
||||
KeyEvent.KEYCODE_MEDIA_PLAY to "play",
|
||||
KeyEvent.KEYCODE_MEDIA_PAUSE to "pause",
|
||||
KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE to "playPause",
|
||||
KeyEvent.KEYCODE_MEDIA_REWIND to "rewind",
|
||||
KeyEvent.KEYCODE_MEDIA_FAST_FORWARD to "fastForward",
|
||||
|
||||
Reference in new issue
Block a user