mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
HWInput: Add Channel Up/Down Support (#52540)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52540 Adds Channel Up/Down events to HWInput. Changelog: [Android][Added] - Channel up/down hardware events. Reviewed By: Abbondanzo Differential Revision: D78099245 fbshipit-source-id: 133d5c835f3862feba641354cb1164eefeafed9f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5d4c22b4a7
commit
c2a3e4420e
+4
-1
@@ -83,6 +83,9 @@ internal class ReactAndroidHWInputDeviceHelper(private val reactRootView: ReactR
|
||||
KeyEvent.KEYCODE_DPAD_DOWN to "down",
|
||||
KeyEvent.KEYCODE_DPAD_LEFT to "left",
|
||||
KeyEvent.KEYCODE_INFO to "info",
|
||||
KeyEvent.KEYCODE_MENU to "menu")
|
||||
KeyEvent.KEYCODE_MENU to "menu",
|
||||
KeyEvent.KEYCODE_CHANNEL_UP to "channelUp",
|
||||
KeyEvent.KEYCODE_CHANNEL_DOWN to "channelDown",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user