From db79ecd63695eeec717e646b42634be6f3328958 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 30 Oct 2025 22:17:56 +0100 Subject: [PATCH] polkit: make sec to dismiss work properly --- dots/.config/quickshell/ii/modules/polkit/PolkitContent.qml | 6 ++++++ 1 file changed, 6 insertions(+) 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 {