DatePicker: close calendar popup with esc

This commit is contained in:
selsta committed 2026-09-07 01:34:27 +02:00
1 parent 7691273c63
commit 9f03cc4016
1 file changed
+1
+1
View File
@@ -249,6 +249,7 @@ Item {
QtQuickControls2.Popup {
id: popup
padding: 0
focus: true
closePolicy: QtQuickControls2.Popup.CloseOnEscape | QtQuickControls2.Popup.CloseOnPressOutsideParent
onOpened: {
calendar.visibleMonth = currentDate.getMonth();