ShortcutsDialog

@Composable
fun ShortcutsDialog(modifier: Modifier = Modifier, sections: List<ShortcutsSection<*>> = emptyList(), contentHeight: Int = -1, contentWidth: Int = -1, followsContentSize: Boolean = false, presentationMode: DialogPresentationMode = DialogPresentationMode.AUTO, onClose: () -> Unit = {})

Creates a org.gnome.adw.ShortcutsDialog to display available keyboard shortcuts.

Parameters

modifier

Compose Modifier for layout and styling.

sections

The sections to display, each containing a group of org.gnome.adw.ShortcutsItem.

contentHeight

The height of the content.

contentWidth

The width of the content.

followsContentSize

Whether to size content automatically.

presentationMode

Which mode used to display the dialog.

onClose

Callback triggered when the dialog is closed.