From 4e5a5f7ae467cd02e4da623bc95da03eeb3957b3 Mon Sep 17 00:00:00 2001 From: fscarponi Date: Tue, 12 Dec 2023 09:22:50 +0100 Subject: [PATCH] removed keybinding handling --- .../main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt index aa96a65f3..4cf178c5c 100644 --- a/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt +++ b/ui/src/main/kotlin/org/jetbrains/jewel/ui/component/Menu.kt @@ -81,7 +81,6 @@ import org.jetbrains.jewel.ui.component.styling.MenuItemMetrics import org.jetbrains.jewel.ui.component.styling.MenuStyle import org.jetbrains.jewel.ui.painter.hints.Stateful import org.jetbrains.jewel.ui.theme.menuStyle -import org.jetbrains.jewel.ui.util.thenIf @Composable public fun PopupMenu( @@ -169,14 +168,6 @@ internal fun MenuContent( .background(colors.background, menuShape) .width(IntrinsicSize.Max) .onHover { localMenuManager.onHoveredChange(it) } - .thenIf(anyIconItem) { - onKeyEvent { - if (it.type == KeyEventType.KeyDown) { - // todo - } - false - } - }, ) { Column(Modifier.verticalScroll(scrollState).padding(style.metrics.contentPadding)) { items.forEach {