diff --git a/dots/.config/quickshell/ii/modules/polkit/PolkitContent.qml b/dots/.config/quickshell/ii/modules/polkit/PolkitContent.qml index 1729bb3d9..2c5b9f3e2 100644 --- a/dots/.config/quickshell/ii/modules/polkit/PolkitContent.qml +++ b/dots/.config/quickshell/ii/modules/polkit/PolkitContent.qml @@ -86,6 +86,12 @@ Item { } echoMode: root.usePasswordChars ? TextInput.Password : TextInput.Normal onAccepted: root.submit(); + + Keys.onPressed: event => { // Esc to close + if (event.key === Qt.Key_Escape) { + PolkitService.cancel(); + } + } } WindowDialogButtonRow {