Repository navigation
Control notifications with the keyboard - #16471
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; the latest change fixes the repeated-selection problem. SummaryAdds keyboard control for notifications, numbered action buttons, and updated shortcuts and manuals.
Reviews (4) · Last reviewed commit: "Skip a notification card that gives way ..." · Reviewed by Greptile |
Super+Ctrl+comma selects the newest card, opens its deck and gives that display's notification surface the keyboard: number keys press its buttons, Enter clicks it, arrows move between cards, Delete dismisses, and Escape, any choice, a mouse click, the pointer moving to another deck, or ten idle seconds hand the keyboard back. Notifications never take focus on their own. Silencing moves to Super+Ctrl+Alt+comma. The card and the keys share one button list, Delivery.deeds, so the numbers always match. invokeAction <n> presses a button on the newest card. The button bar's segments draw their own hairlines, mirrored in right-to-left languages, so the selection tint covers the whole card, and a label is only cut short when it cannot fit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dhh
force-pushed
the
notification-keyboard
branch
from
October 24, 2026 10:31
f1df4c2 to
eab1528
Compare
The deck does not scroll, so moving the selection down could select a card below the bottom of the screen and act on it unseen. The keyboard now stops at the last card that would fit with its deck open, and a dismissal falls back to the nearest reachable card. Clicking a link in a card's text now ends keyboard mode too, so the browser it opens gets the keyboard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ons on screen Down stopped at the first card of a long deck that did not fit, so the decks below it, which fit once it collapses, were out of reach. It now skips to the next card that fits. Selecting a card shows its buttons and can open its body, so it grows after the check passed; once its height arrives, a card that no longer fits gives way to the nearest one above. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A card that fits until selection shows its buttons gave way to the card above, hid its buttons, and was picked again by the next Down, so later decks were never reached. It is now remembered for the rest of the keyboard session and skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on the notification action buttons from #16466.
Notifications never take keyboard focus on their own, since a card that grabbed focus as it arrived would swallow whatever you were typing. A keybinding hands the keyboard over instead:
Super + Ctrl + ,selects the newest card, opens its deck, and gives that display's notification surface exclusive keyboard focus.1–9press a button.Enterclicks the card.↑/↓(alsoj/k,Tab) move between cards, deck by deck.Deletedismisses the card and selects the next.Esc, any choice, a mouse click on a card, the pointer moving onto another deck, or ten idle seconds give the keyboard back.Super + Ctrl + Alt + ,to free the shorter keys. The hotkeys and toggles manual pages are updated; translations follow through the sync workflow.omarchy-shell notifications invokeAction <n>presses button n on the newest card without the mode.Delivery.deeds, feeds both the card's buttons and the number keys, so they can't disagree. A test pins its order: codes, then--actionbuttons, then the sender's actions.Verified in the running shell:
omarchy-shell notifications keyboardselected the newest card with numbered buttons,↓(viawtype) moved the selection to the next card, andEscreleased the keyboard. After the rebase ontoquattro, pressing2ran the second button and released the keyboard. The swappedSuper + Ctrl + ,/Super + Ctrl + Alt + ,bindings and the mouse paths were not exercised live (no pointer injection).notifications-test.sh,i18n-test.shandqml-text-format-test.shpass.🤖 Generated with Claude Code