Skip to content

Commit

Permalink
Remove platform-specific FocusablePopup
Browse files Browse the repository at this point in the history
  • Loading branch information
overpas committed Oct 20, 2024
1 parent cebd185 commit bddd4a2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 59 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ package by.overpass.treemapchart.sample.shared.complex

import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.input.key.KeyEvent
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.window.Popup
import androidx.compose.ui.window.PopupProperties

@Suppress("LongParameterList")
@Composable
internal expect fun FocusablePopup(
internal fun FocusablePopup(
alignment: Alignment = Alignment.TopStart,
offset: IntOffset = IntOffset(0, 0),
onDismissRequest: (() -> Unit)? = null,
onPreviewKeyEvent: ((KeyEvent) -> Boolean) = { false },
onKeyEvent: ((KeyEvent) -> Boolean) = { false },
content: @Composable () -> Unit,
)
) {
Popup(
alignment = alignment,
offset = offset,
onDismissRequest = onDismissRequest,
properties = PopupProperties(
focusable = true,
),
content = content,
)
}

This file was deleted.

0 comments on commit bddd4a2

Please sign in to comment.