From 423b74322fcc3fa27719e76590bd1cc3b169b531 Mon Sep 17 00:00:00 2001 From: Hasinjato Date: Wed, 26 Aug 2026 14:22:26 +0300 Subject: [PATCH] Switch to system keyboard when tapping search textfield - Android --- .../kotlin/mg/dot/feufaro/ui/DrawerUI.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/DrawerUI.kt b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/DrawerUI.kt index 9499e01..612e9e9 100644 --- a/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/DrawerUI.kt +++ b/composeApp/src/commonMain/kotlin/mg/dot/feufaro/ui/DrawerUI.kt @@ -444,6 +444,21 @@ fun MainScreenWithDrawer( ) } ) + if (isAndroid && isNumericKeyboard) { + Box( + modifier = Modifier + .fillMaxWidth() + .height(38.dp) + .clickable( + interactionSource = remember { MutableInteractionSource() }, + indication = null + ) { + isNumericKeyboard = false + focusRequester.requestFocus() + keyboardController?.show() + } + ) + } } } else { Column(