Skip to content

Commit

Permalink
modalDialog: Allow closing the Confirm dialog with ESC
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephMcc committed Nov 29, 2024
1 parent f3118eb commit 1d185f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ui/modalDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ class ConfirmDialog extends ModalDialog {
this.setButtons([
{
label: _("No"),
action: this.destroy.bind(this)
action: this.destroy.bind(this),
key: Clutter.KEY_Escape,
},
{
label: _("Yes"),
Expand Down

0 comments on commit 1d185f1

Please sign in to comment.