keybinds: fix escape in keybinds modal

This commit is contained in:
bbedward committed 2026-02-18 14:57:34 -05:00
1 parent c02c63806f
commit 8e4a63db67
1 file changed
+5
+5
View File
@@ -91,7 +91,12 @@ DankModal {
id: searchField
Layout.alignment: Qt.AlignRight
leftIconName: "search"
keyForwardTargets: [root.modalFocusScope]
onTextEdited: searchDebounce.restart()
Keys.onEscapePressed: event => {
root.close();
event.accepted = true;
}
}
}