diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-13 10:26:59 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-13 10:27:04 +0200 |
| commit | d518e5f691fea8c28978bd4ea7d33c4cbda3232f (patch) | |
| tree | 896b58b7a79c3d0ff6b0b80ceb541dac062bce10 /desktop/island/calendar/CalendarPanel.qml | |
| parent | 47a97f0717fc54b5eb33c266d8dbafdc8d3c15ee (diff) | |
| download | quickshell-d518e5f691fea8c28978bd4ea7d33c4cbda3232f.tar.gz quickshell-d518e5f691fea8c28978bd4ea7d33c4cbda3232f.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/island/calendar/CalendarPanel.qml')
| -rw-r--r-- | desktop/island/calendar/CalendarPanel.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
