Skip to content

Commit

Permalink
GH-67 Add more TV remote keys to open preferences
Browse files Browse the repository at this point in the history
Add "Context menu" and "Channel down" buttons.
  • Loading branch information
Radiokot committed Oct 8, 2023
1 parent b46ed4f commit 1a43c39
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,9 @@ class GalleryActivity : BaseActivity() {
if (keyCode in setOf(
KeyEvent.KEYCODE_SETTINGS,
KeyEvent.KEYCODE_MENU,
KeyEvent.KEYCODE_BOOKMARK
KeyEvent.KEYCODE_BOOKMARK,
KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_1, // "Context menu" button
KeyEvent.KEYCODE_CHANNEL_DOWN,
)
) {
viewModel.onPreferencesButtonClicked()
Expand Down

0 comments on commit 1a43c39

Please sign in to comment.