aboutsummaryrefslogtreecommitdiffstats
path: root/src/messagesender.h
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-20 17:31:50 +0200
committerDanilo M. <danix@danix.xyz>2026-08-20 17:31:50 +0200
commit81c0086a06d4b13478475c2fa05f040c0511bfba (patch)
tree31b754b931b6553594d8d857870064592c5b6443 /src/messagesender.h
parentc06809634534ed3b6eb81a1648119428567e71a4 (diff)
downloadqtmaildir-81c0086a06d4b13478475c2fa05f040c0511bfba.tar.gz
qtmaildir-81c0086a06d4b13478475c2fa05f040c0511bfba.zip
test(keys): a shortcut is a chosen subset, not a requirement, item 132
everyActionHasAShortcut() was written when the action list was short and every action plausibly deserved a chord. Item 123 adds six more, and under that rule each one consumes a key sequence whether or not anyone would ever press it. Rarely-used actions were being given chords to satisfy a test rather than because a user wanted them. everyActionIsReachableFromAMenu() is the rule that actually matters, and it already has the right shape: it is what stops an action shipping invisible, which is the defect item 103 found when `restore` was reachable by a chord and by nothing a user could see. Discoverability comes from the menu. A shortcut is an accelerator for the things done often. Nothing replaces the deleted test and nothing else needed changing: showShortcutReference() already prints `(unbound)` for an empty sequence, so the code anticipated this and only the test forbade it. Verified rather than assumed: with `tag_rules` unbound in defaultBindings(), an action that is registered, menu-reachable and carries an icon but has no chord at all, the full suite passes. Before this commit it failed. CLAUDE.md's "adding an action is FIVE places" paragraph is updated, including its count of how many are test-enforced, which drops from four to three.
Diffstat (limited to 'src/messagesender.h')
0 files changed, 0 insertions, 0 deletions