From 4eeda5e2eebf728351a0ae650b09c7d1386014d4 Mon Sep 17 00:00:00 2001 From: Eugene Date: Mon, 17 Aug 2026 18:24:49 +0300 Subject: [PATCH] add complete black background in videoscreen, don't handle all keys in search screen --- .../vbox/shared/presentation/search/SearchScreen.android.kt | 3 ++- .../kotlin/ru/shadowsparky/videoplayer/ui/VideoPlayer.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/vbox/client/shared/src/androidMain/kotlin/ru/shadowsparky/vbox/shared/presentation/search/SearchScreen.android.kt b/apps/vbox/client/shared/src/androidMain/kotlin/ru/shadowsparky/vbox/shared/presentation/search/SearchScreen.android.kt index 604de7d..e9ae8f5 100644 --- a/apps/vbox/client/shared/src/androidMain/kotlin/ru/shadowsparky/vbox/shared/presentation/search/SearchScreen.android.kt +++ b/apps/vbox/client/shared/src/androidMain/kotlin/ru/shadowsparky/vbox/shared/presentation/search/SearchScreen.android.kt @@ -13,8 +13,9 @@ actual fun Modifier.requestFocusOnDownEvent(focusRequester: FocusRequester): Mod if (it.type == KeyEventType.KeyUp) { if (it.key == Key.DirectionDown) { focusRequester.requestFocus() + return@onKeyEvent true } } - true + false } } diff --git a/feature/video-player/src/commonMain/kotlin/ru/shadowsparky/videoplayer/ui/VideoPlayer.kt b/feature/video-player/src/commonMain/kotlin/ru/shadowsparky/videoplayer/ui/VideoPlayer.kt index 057807d..81c97da 100644 --- a/feature/video-player/src/commonMain/kotlin/ru/shadowsparky/videoplayer/ui/VideoPlayer.kt +++ b/feature/video-player/src/commonMain/kotlin/ru/shadowsparky/videoplayer/ui/VideoPlayer.kt @@ -114,7 +114,7 @@ fun VideoPlayer( ) } - Box(modifier = rootModifier.background(Color.Black)) { + Box(modifier = rootModifier.fillMaxSize().background(Color.Black)) { VideoCanvas( controller = controller, modifier = rootModifier.fillMaxSize(),