Repository navigation
fix(menu): accept plus in search input - #7659
ketpatil77 wants to merge 7 commits into
Conversation
Signed-off-by: ketpatil77 <[email protected]>
There was a problem hiding this comment.
Pull request overview
Fixes #7629 by allowing printable menu search input with Shift, keypad, or layout modifiers while still rejecting shortcut modifiers.
Changes:
- Updates the menu input modifier guard.
- Adds regression coverage for the new guard.
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 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
shell/plugins/menu/Menu.qml |
Accepts printable text unless Ctrl, Alt, or Meta is active. |
test/shell.d/menu-test.sh |
Verifies the printable-input modifier guard. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The image picker's filter had the same exact-modifier guard as the menu, so keypad keys, which carry Qt.KeypadModifier, never reached a filterable picker such as the theme switcher. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviewed and verified on an Omarchy worker VM, with this branch merged into current The cause. Qt tags every numeric-keypad key with
Pushed to your branch: 354ef34. The image picker's filter ( Tests on the worker: Second opinion: Codex Medium reviewed the final diff and found no defects. It agreed on the keypad cause and on the scope, though that agreement is not guaranteed to be independent of this review. It also pointed out that on Wayland, AltGr text does not always carry This fixes #7629. Nothing is needed from you. It waits on the maintainer, and on the unrelated |
quattro appended its own image picker assertions at the same spot as the keypad filter assertion; both are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Low impact] The PR appears safe to merge; the wider input check preserves shortcut exclusions. Summary
Reviews (5) · Last reviewed commit: "Merge current quattro and retain printab..." · Reviewed by Greptile |
|
This branch had stopped merging cleanly into Verified again on an Omarchy worker VM, with the shell linked to each tree in turn and keys typed with
Tests on the worker, at 5c1be8d: Second opinion: Codex Medium reviewed the merged head and found no defects. It confirmed that the merge resolution keeps every This fixes #7629. Nothing is needed from you. It now waits on the maintainer. |
quattro moved the menu's search line onto a TextInput (FilterInput) that types every key the menu leaves unaccepted and refuses only Alt and Super chords, so keypad keys reach the menu filter there without this branch's guard. The menu half of the fix and its assertion are dropped in favour of quattro's; the image picker still filters through Keys.onPressed with the exact-modifier check, so its fix stays. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This branch had stopped merging cleanly into What changed in the merge. Verified on an Omarchy worker VM, with the shell linked to each tree in turn and keys typed with
At this head, Alt+Z and Ctrl+Z in the picker still type nothing. Tests on the worker, at 20b5da6: Second opinion: Codex Medium reviewed the merged head and found no defects. It agreed that the merge resolution is right, that no other handler under #8023 makes the same change through a shared This fixes #7629. Nothing is needed from you. It now waits on the maintainer. |
|
@ketpatil77 your latest commit, e7e49c5 ("test: exercise image picker modifier combinations"), is empty: its tree is identical to 20b5da6 before it, so no new tests reached the branch. If you meant to add modifier-combination tests, they are still on your machine. Nothing else needs changing for the fix itself. Re-verified at e7e49c5 on an Omarchy worker VM, against current
At this head, Ctrl+Z and Alt+Z in the picker still type nothing. On the worker, Second opinion: Codex Medium reviewed this head and found no defects. It confirmed the commit is empty and that the fix is proportionate and still needed. That agreement is not guaranteed to be independent of this review. #8023 makes the same picker change through a shared This fixes #7629. It now waits on the maintainer. |
|
You are right: e7e49c5 was empty. I captured the file while a baseline test run had temporarily restored its original contents. Corrected in ee6964d; I verified the remote commit contains test/shell.d/image-picker-test.sh with 29 additions and 4 deletions. The table-driven checks evaluate the actual guard with Shift plus keypad/layout modifiers and confirm Control, Alt, and Meta combinations are rejected. The focused image-picker suite passes 197 assertions. This follow-up adds behavioral coverage; the production fix is unchanged. |
|
@ketpatil77 thanks, ee6964d has the tests this time. They pull the picker's guard out of Re-verified at ee6964d on an Omarchy worker VM, against current
At this head, Ctrl+Z and Alt+Z in the picker still type nothing. On the worker, Second opinion: none this round. The configured reviewer, Codex Medium, answers, but its daily limit of reviews was used up, so this head was reviewed by Claude Opus 5.5 alone. Codex Medium reviewed the same fix at the earlier heads and found no defects. #8023 makes the same picker change through a shared This fixes #7629. It now waits on the maintainer. |
|
Merged current Validation on the merged tree: the complete JavaScript payload from This Windows environment has no Bash or running Omarchy desktop, so the Linux shell wrapper and interactive keyboard behavior remain unverified locally. |
|
@ketpatil77 thanks for bringing the branch up to date. 9de81fc resolves the conflict in The Re-verified at 9de81fc on an Omarchy worker VM. I merged the branch into current
The worker ran these tests at the head, and all passed:
With the fix reverted, Second opinion: two reviewers read the head: Codex Medium, and muse-wonder through pi at high thinking. Neither found a defect. Both confirmed the merge resolution and that the menu is covered on #8023 makes the same picker change through a shared It now waits on the maintainer. |
What changed
This fixes
+being dropped from menu searches on affected keyboard layouts while preserving shortcut handling.Closes #7629
Testing
git diff --checkFull shell test runner was unavailable because this Windows host has no Bash/WSL. CI provides the Linux shell suite.