mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-23 19:26:50 +00:00
Refine TV player remote control key mappings
Update directional key behavior to separate seeking, showing controls, and toggling playback. Left/Right now seek without showing controls, while Up/Down now only show controls instead of toggling playback.
This commit is contained in:
@@ -155,15 +155,16 @@ fun TvPlayerScreen(
|
||||
when (event.key) {
|
||||
Key.DirectionLeft -> {
|
||||
viewModel.seekBy(-10_000)
|
||||
viewModel.showControls()
|
||||
true
|
||||
}
|
||||
Key.DirectionRight -> {
|
||||
viewModel.seekBy(10_000)
|
||||
true
|
||||
}
|
||||
Key.DirectionUp, Key.DirectionDown -> {
|
||||
viewModel.showControls()
|
||||
true
|
||||
}
|
||||
Key.DirectionUp, Key.DirectionDown,
|
||||
Key.DirectionCenter, Key.Enter -> {
|
||||
viewModel.togglePlayPause()
|
||||
viewModel.showControls()
|
||||
|
||||
Reference in New Issue
Block a user