From d518e5f691fea8c28978bd4ea7d33c4cbda3232f Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 13 Oct 2026 10:26:59 +0200 Subject: feat(island): the clock pill opens the calendar panel A click on the pill opens the panel in its capsule, 620px wide, growing left from the gap so the status pill does not move. Focus goes into the panel so its text fields and Escape work; Escape closes the editor before the panel. The Escape hook is back(), not escape(): QML rejects a method named escape with "Illegal method name", since it shadows the global JS function, and the reload failed until it was renamed. Co-Authored-By: Claude Opus 5.5 --- desktop/island/calendar/CalendarPanel.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/island/calendar/CalendarPanel.qml') diff --git a/desktop/island/calendar/CalendarPanel.qml b/desktop/island/calendar/CalendarPanel.qml index 9515a9a..5d193eb 100644 --- a/desktop/island/calendar/CalendarPanel.qml +++ b/desktop/island/calendar/CalendarPanel.qml @@ -90,12 +90,12 @@ Item { } // Escape: the editor first, then the panel. - function escape() { + function back() { if (panel.editing) { panel.closeEditor(); return true; } return false; } - Keys.onEscapePressed: if (!panel.escape()) panel.closeRequested() + Keys.onEscapePressed: if (!panel.back()) panel.closeRequested() Component.onCompleted: panel.reset() -- cgit v1.2.3