From 3554a3f138937fadee78f00a8f0c39727504edd6 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Mon, 14 Jul 2025 15:11:37 +0200 Subject: [PATCH] [JEWEL-891] Annotate detectPressAndCancel as internal API It was opened up by someone without our knowledge, and it risks leaking into the public API otherwise. APIs annotated as @ApiStatus.Internal do not show up in the API dumps, because as far as IJP is concerned, they should not be used. However, we also have standalone users, and for them that annotation has no meaning. This will need to be cherry picked onto 252 asap, too. closes https://github.com/JetBrains/intellij-community/pull/3122 GitOrigin-RevId: dfff8dcadd39cfbdc0e6557083bfa834cc1b9f47 --- .../kotlin/org/jetbrains/jewel/ui/component/EditableComboBox.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/jewel/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/EditableComboBox.kt b/platform/jewel/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/EditableComboBox.kt index a121f82bc7f3..71041b18e4f1 100644 --- a/platform/jewel/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/EditableComboBox.kt +++ b/platform/jewel/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/EditableComboBox.kt @@ -56,6 +56,7 @@ import androidx.compose.ui.unit.Dp import androidx.compose.ui.window.PopupProperties import kotlinx.coroutines.coroutineScope import org.jetbrains.annotations.ApiStatus +import org.jetbrains.jewel.foundation.InternalJewelApi import org.jetbrains.jewel.foundation.Stroke import org.jetbrains.jewel.foundation.modifier.border import org.jetbrains.jewel.foundation.modifier.onHover @@ -366,6 +367,7 @@ public value class ComboBoxState(public val state: ULong) : FocusableComponentSt } } +@InternalJewelApi @ApiStatus.Internal public suspend fun PointerInputScope.detectPressAndCancel(onPress: () -> Unit, onCancel: () -> Unit) { coroutineScope {