diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderModifier.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderModifier.kt index 88c1d216a8..3f02352e90 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderModifier.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderModifier.kt @@ -4,8 +4,10 @@ import androidx.compose.ui.node.ModifierNodeElement import com.intellij.openapi.actionSystem.DataSink import com.intellij.openapi.actionSystem.UiDataProvider import org.jetbrains.annotations.VisibleForTesting +import org.jetbrains.jewel.foundation.InternalJewelApi @VisibleForTesting +@InternalJewelApi public class RootDataProviderModifier : ModifierNodeElement(), UiDataProvider { private val rootNode = RootDataProviderNode() diff --git a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderNode.kt b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderNode.kt index e565ec5cca..6f88551b8a 100644 --- a/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderNode.kt +++ b/ide-laf-bridge/src/main/kotlin/org/jetbrains/jewel/bridge/actionSystem/RootDataProviderNode.kt @@ -5,8 +5,12 @@ import androidx.compose.ui.node.TraversableNode import androidx.compose.ui.node.traverseDescendants import com.intellij.openapi.actionSystem.DataSink import com.intellij.openapi.actionSystem.UiDataProvider +import org.jetbrains.annotations.VisibleForTesting +import org.jetbrains.jewel.foundation.InternalJewelApi import org.jetbrains.jewel.foundation.actionSystem.DataProviderNode +@VisibleForTesting +@InternalJewelApi public class RootDataProviderNode : Modifier.Node(), UiDataProvider { override fun uiDataSnapshot(sink: DataSink) { val context = DataProviderDataSinkContext(sink) @@ -14,7 +18,8 @@ public class RootDataProviderNode : Modifier.Node(), UiDataProvider { traverseDescendants(DataProviderNode) { dp -> if (dp is DataProviderNode) { if (!dp.hasFocus) { - return@traverseDescendants TraversableNode.Companion.TraverseDescendantsAction.SkipSubtreeAndContinueTraversal + return@traverseDescendants TraversableNode.Companion.TraverseDescendantsAction + .SkipSubtreeAndContinueTraversal } else { dp.dataProvider(context) }