Skip to content

Commit

Permalink
Allow confirming and canceling confirmation dialogs with keyboard sho…
Browse files Browse the repository at this point in the history
…rtcuts (#6138)
  • Loading branch information
ClementPasteau authored Jan 3, 2024
1 parent 2e4e91c commit 5a8e4a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions newIDE/app/src/UI/Alert/AlertDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function AlertDialog(props: Props) {
/>,
]}
maxWidth="xs"
onRequestClose={props.onDismiss}
onApply={props.onDismiss}
>
<Text>{i18n._(props.message)}</Text>
</Dialog>
Expand Down
2 changes: 2 additions & 0 deletions newIDE/app/src/UI/Alert/ConfirmDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ function ConfirmDialog(props: Props) {
actions={dialogActions}
maxWidth="xs"
noMobileFullScreen
onRequestClose={props.onDismiss}
onApply={props.onConfirm}
>
<MarkdownText translatableSource={props.message} isStandaloneText />
</Dialog>
Expand Down
2 changes: 2 additions & 0 deletions newIDE/app/src/UI/Alert/YesNoCancelDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ function YesNoCancelDialog(props: Props) {
]}
maxWidth="xs"
noMobileFullScreen
onRequestClose={props.onClickCancel}
onApply={props.onClickYes}
>
<MarkdownText translatableSource={props.message} isStandaloneText />
</Dialog>
Expand Down

0 comments on commit 5a8e4a7

Please sign in to comment.