Skip to content

Commit 3b1e95e

Browse files
committed
Update comment
1 parent fec2221 commit 3b1e95e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compose/material/material/src/desktopMain/kotlin/androidx/compose/material/DesktopAlertDialog.desktop.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ import androidx.compose.ui.window.rememberDialogState
4444
* space is available. There is also another version of this composable that has a slot for buttons
4545
* to provide custom buttons layout.
4646
*
47-
* @param onDismissRequest Executes when the user tries to dismiss the Dialog by clicking outside
48-
* or pressing the back button. This is not called when the dismiss button is clicked.
47+
* @param onDismissRequest Executes when the user tries to dismiss the Dialog by Esc button.
48+
* This is not called when the dismiss button is clicked.
4949
* @param confirmButton A button which is meant to confirm a proposed action, thus resolving
5050
* what triggered the dialog. The dialog does not set up any events for this button so they need
5151
* to be set up by the caller.
@@ -109,8 +109,8 @@ fun AlertDialogWindow(
109109
*
110110
* This function can be used to fully customize the button area, e.g. with:
111111
*
112-
* @param onDismissRequest Executes when the user tries to dismiss the Dialog by clicking outside
113-
* or pressing the back button. This is not called when the dismiss button is clicked.
112+
* @param onDismissRequest Executes when the user tries to dismiss the Dialog by Esc button.
113+
* This is not called when the dismiss button is clicked.
114114
* @param buttons Function that emits the layout with the buttons.
115115
* @param modifier Modifier to be applied to the layout of the dialog.
116116
* @param title The title of the Dialog which should specify the purpose of the Dialog. The title

0 commit comments

Comments
 (0)