aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.cpp
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-03 16:33:13 +0200
committerDanilo M. <danix@danix.xyz>2026-08-03 16:33:13 +0200
commitea90e69d5e974960c653e65a5bb9ca1359f2d52c (patch)
tree87410a035212f0e8e5997722662803c17a3320d8 /src/keymap.cpp
parentec390fb46e1a36d8406dde487228bbb0f348a20a (diff)
parent2c33529fb665cb54c31e54230fcb7b2491cf8565 (diff)
downloadqtmaildir-ea90e69d5e974960c653e65a5bb9ca1359f2d52c.tar.gz
qtmaildir-ea90e69d5e974960c653e65a5bb9ca1359f2d52c.zip
Merge branch 'feature/ui-state-persistence'
Persistence cluster from the post-0.1.0 usability backlog: window, splitter and column geometry survive restart, the message pane owns its zoom and remembers it, and the startup query is chosen by name instead of by alphabetical accident. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/keymap.cpp')
-rw-r--r--src/keymap.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/keymap.cpp b/src/keymap.cpp
index 42ccd40..22c8da1 100644
--- a/src/keymap.cpp
+++ b/src/keymap.cpp
@@ -35,6 +35,9 @@ QStringList KeyMap::knownActions()
QStringLiteral("focus_query"),
QStringLiteral("toggle_html"),
QStringLiteral("load_remote"),
+ QStringLiteral("zoom_in"),
+ QStringLiteral("zoom_out"),
+ QStringLiteral("zoom_reset"),
QStringLiteral("undo"),
QStringLiteral("sync"),
QStringLiteral("quit"),
@@ -63,6 +66,15 @@ QList<QPair<QString, QString>> KeyMap::defaultBindings()
{ QStringLiteral("Ctrl+L"), QStringLiteral("focus_query") },
{ QStringLiteral("Ctrl+H"), QStringLiteral("toggle_html") },
{ QStringLiteral("Ctrl+M"), QStringLiteral("load_remote") },
+ // Ctrl++ is what the '+' key really delivers on a layout where '+' is
+ // unshifted, an Italian one among them, confirmed against the actual
+ // keyboard. QTest::keyClick() cannot reproduce it, so a synthetic-input
+ // probe wrongly reports this binding as dead; do not "fix" it on that
+ // evidence. A US layout, where '+' is Shift+'=', wants Ctrl+Shift+= in
+ // [keys] instead.
+ { QStringLiteral("Ctrl++"), QStringLiteral("zoom_in") },
+ { QStringLiteral("Ctrl+-"), QStringLiteral("zoom_out") },
+ { QStringLiteral("Ctrl+0"), QStringLiteral("zoom_reset") },
{ QStringLiteral("Ctrl+Z"), QStringLiteral("undo") },
{ QStringLiteral("Ctrl+G"), QStringLiteral("sync") },
{ QStringLiteral("Ctrl+Q"), QStringLiteral("quit") },