Skip to content

Commit c2a3e44

Browse files
sbuggayfacebook-github-bot
authored andcommitted
HWInput: Add Channel Up/Down Support (#52540)
Summary: Pull Request resolved: #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
1 parent 5d4c22b commit c2a3e44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ internal class ReactAndroidHWInputDeviceHelper(private val reactRootView: ReactR
8383
KeyEvent.KEYCODE_DPAD_DOWN to "down",
8484
KeyEvent.KEYCODE_DPAD_LEFT to "left",
8585
KeyEvent.KEYCODE_INFO to "info",
86-
KeyEvent.KEYCODE_MENU to "menu")
86+
KeyEvent.KEYCODE_MENU to "menu",
87+
KeyEvent.KEYCODE_CHANNEL_UP to "channelUp",
88+
KeyEvent.KEYCODE_CHANNEL_DOWN to "channelDown",
89+
)
8790
}
8891
}

0 commit comments

Comments
 (0)