polkit: make sec to dismiss work properly

This commit is contained in:
end-4
2025-10-30 22:17:56 +01:00
parent 9da8cc0cea
commit db79ecd636
@@ -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 {