Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Intends to fix numpad input filtering by ignoring Qt.KeypadModifier, but the branch contains 2,062 mostly unrelated file changes.
Changes:
- Adds
Util.baseModifiers()and applies it to menu/image-picker input. - Includes 1,811 unrelated commits requiring a rebase.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
Reviewed changes
Copilot reviewed 57 out of 2062 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
shell/Commons/Util.qml |
Masks the keypad modifier. |
shell/plugins/menu/Menu.qml |
Accepts numpad filter input. |
shell/plugins/image-picker/ImagePicker.qml |
Accepts numpad filter input. |
version and 2,058 other files |
Unrelated stale-branch changes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Thanks — that was a base-branch mistake on my part, now fixed. The branch was always cut from Retargeted to
No rebase or cherry-pick needed. |
|
Rebased onto current
The caveat in the description still stands: this is verified by instrumentation and inspection, not in a running dev-linked shell. Happy to adjust if a maintainer wants it structured differently. |
2165a65 to
cc07bd2
Compare
Typing a digit on the numeric keypad did nothing in the Omarchy menu search or the image picker filter, while the same digit on the number row typed fine. Qt sets KeypadModifier on every keypad key while NumLock is on, and both panels only typed a character when event.modifiers was exactly NoModifier or ShiftModifier, so the keystroke was dropped with event.text already holding the digit. Characters reached through AltGr, such as "+" on some layouts, were dropped the same way because Qt flags them with GroupSwitchModifier. The other searchable panels test modifiers with bitmasks and were never affected. The "does this keystroke type into the filter?" check was the same expression in both panels. Move it into Util.extendsFilter next to editsFilter, reject only Ctrl, Alt and Super chords there, and route both panels through it. The test runs the helper against the real Qt modifier values and checks the panels use it. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01D4yxzhnahYVFHVL1APLSkp
|
Reworked, now that this has been run rather than read.
#8176 / #8552 are the other keypad failure (Qt with NumLock out of sync, keys arrive as arrows with no text) and need #10530 / #8018; this is the in-sync case. |
cc07bd2 to
6271b99
Compare
|
Reviewed and verified on an Omarchy worker VM, with this branch merged into current Reproduction. Typing into
The image picker goes through the same Tests on the worker. Second opinion. Codex Medium reviewed the diff and found no functional defect; that agreement is not guaranteed to be independent of this review. It added one point of its own: on Wayland, Qt builds modifiers from xkb and never sets Related. #7659 fixes the same keypad bug in the same two panels with the same rule, inline in each. Asked which to merge without being told this review's answer, Codex preferred this one for the shared helper and a test that exercises it; this review agrees. This one is marked as the fix for #7629. #8176 and #8552 are the separate NumLock-desync case and are not fixed by either. Nothing is needed from you. It waits on the maintainer, who also decides between this and #7659. |
Quattro's menu now types into its filter through FilterInput, a TextInput (omacom#15508), so the menu's own printable-key branch is gone and the menu half of this fix with it; the menu takes quattro's side. The image picker still filters from Keys.onPressed with the exact-modifier check, so it keeps Util.extendsFilter. The helper's test moves to filter-extends-test.sh, since quattro's filter-input-test.sh now tests FilterInput, and stops asserting on the menu. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThe image picker now accepts printable keypad and AltGr characters through
Reviews (1) · Last reviewed commit: "Merge quattro into numpad-input-keypad-m..." · Reviewed by Greptile |
|
This stopped merging into What changed in the merge. Since this PR was opened, #15508 moved the menu's search line onto Reproduction on an Omarchy worker VM, typing with
On Tests on the worker. Second opinion. Codex Medium reviewed the merge resolution and the remaining diff and found no defects. It agreed with my reading, and its independence is not guaranteed. Nothing is left for you. This waits on the maintainer. |
|
I compared this with the older #7659. Both apply the same printable-character and modifier rules to the image picker; I found no additional input case fixed here. Codex GPT-6 High, Opus 5.5 High and muse-wonder via pi (thinking high) reviewed the comparison. They agreed that the implementations cover the same cases; independence of that agreement is not guaranteed. Both PRs remain open for the maintainer's choice. I also investigated the failed translation workflow on 4114ce2. GitHub no longer retains its job logs, so its original cause remains unconfirmed. On a disposable Omarchy worker, the structural translation test failed during locale generation at both this head and its original base c582e1d. Current No changes were pushed. This remains with the maintainer to choose between the two fixes; nothing is requested from you. |
|
Closing this in favour of #7659. Since #15508 moved the menu onto Thanks for the reviews and worker runs along the way. (Comparison done with AI assistance, as with the PR itself.) |
Problem
With
--filterable, typing a digit on the numeric keypad into the image picker's filter does nothing. The same digit on the number row works.Cause
Qt sets
Qt.KeypadModifieron keypad key events. The image picker types into its filter fromKeys.onPressedand only appends a character whenevent.modifiersis exactlyQt.NoModifierorQt.ShiftModifier, so the keypad event is dropped even thoughevent.textalready holds the digit.The menu used to have the same check. Since #15508 moved its search line onto
Ui/FilterInput(aTextInput), it types keypad digits on its own, so this PR no longer touches it.Fix
Add
Util.extendsFilter(event)next to the existingeditsFilter/editedFilterhelpers. It accepts a single printable character and refuses only Ctrl, Alt and Super chords. The image picker now goes through it, so any panel that still filters fromKeys.onPressedcan use the same check.+14 / −1 in
shell/, plus one test.Verification
On an Omarchy worker VM (from the review below), using
wtypeintoomarchy-menu-images --filterableover images namedalpha,beta5andgamma:quattro5beta55beta5beta55test/shell.d/filter-extends-test.shruns the helper's own JavaScript against the real Qt modifier values (row and keypad digits, Shift, Ctrl/Alt/Super chords, empty, control and multi-character text) and checks that the picker routes through it. It fails with the picker line reverted.Related
+in menu prompts) is a menu issue and looks already fixed onquattroby Perfect Japanese, Chinese and Korean setups #15508, so this PR no longer claims it.Developed with AI assistance (Claude Code); reviewed and tested on Omarchy.