diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-24 18:56:08 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-24 18:56:08 +0200 |
| commit | 35b136944656c9ff9c3b064f47be08224f76c1f9 (patch) | |
| tree | 1668716a498c5d292dec57ea0710f454193c5ce9 /AGENTS.md | |
| parent | ab785283e6abd1730efd4499ba4bc436a3de2665 (diff) | |
| download | qtmaildir-35b136944656c9ff9c3b064f47be08224f76c1f9.tar.gz qtmaildir-35b136944656c9ff9c3b064f47be08224f76c1f9.zip | |
feat: close the calendar's event pane with Escape
Escape was scoped to the pane and only cancelled an edit, so once an
event was selected nothing closed the pane again. It is a window shortcut
now, labelled Close event: with no edit open it clears the selection and
the pane hides. With an edit open it cancels only when focus is inside
the pane, so a stray Escape after clicking the grid cannot discard the
form.
That guard needed the month grid to take focus on a click, which it never
did; the view-scoped PgUp/PgDn, Delete and Ctrl+Z were likewise reachable
only by Tab until now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1059,7 +1059,9 @@ scoped to the views with `Qt::WidgetWithChildrenShortcut`.** They are window shortcuts otherwise, and a bare `Delete` or `Ctrl+Z` then fires while the user is typing in the edit form's Title field, deleting the event or undoing the calendar instead of editing text. `EventPane` and the stacked views are the -scopes; Escape is scoped to the pane. +scopes. Escape is the exception and is a WINDOW shortcut, so it closes the +details pane from the grid; with an edit open it cancels only when focus is +inside the pane, so a stray Escape from the grid cannot discard the form. **`calendar_sync_command` is read through a `QStringList` join.** With no quote around the value, QSettings splits a comma-holding string into a `QStringList` |
