Better Esc to close

This commit is contained in:
Hannes
2026-03-02 01:07:33 +01:00
parent 1d58e3ee2b
commit 644d6b5d1f
+11 -6
View File
@@ -63,13 +63,18 @@ PanelWindow {
border.color: filterText.activeFocus ? Colors.tertiary : Colors.primary
border.width: 1
}
Keys.onReleased: {
if (event.key === Qt.Key_Escape) {
console.log("Escape pressed inside TextField")
console.log("Pressed Escape, closing Wallpaper Picker")
wallpaperLoader.active = false
}
Keys.onReleased: {
if (event.key === Qt.Key_Escape) {
console.log("Escape pressed inside TextField")
console.log("Pressed Escape, closing Wallpaper Picker")
// wallpaperLoader.active = false
filterText.text = ""
filterText.focus = false
event.accepted = true
pickerScope.focus = true
}
}
}