Skip to content

wallpaper: fix keyboard selection around the Super+Y search - #4440

Merged
purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-grid-focus-after-search
Nov 28, 2026
Merged

purian23 merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-grid-focus-after-search

Conversation

@Conava

@Conava Conava commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes three keyboard issues in the search in the Super+Y wallpaper grid:

  • After searching and clearing the search, the focus ring could sit on a different wallpaper than the one Enter picks. The wallpaper folders PR (wallpaper: add wallpaper folders #4155) already fixed this when folders are used, this extends it to the default wallpaper directory.
  • Clearing the search with the clear button in the field took the keyboard focus away, so Enter did nothing afterwards. Now it correctly applies the wallpaper that has the focus ring.
  • While typing in the search field, using the Left Button moved the text cursor instead of the wallpaper selection while pressing Right moved the selection (when the cursor was on the very right as it is usually while typing). Left and Right now move the selection, like in the launcher grid.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Screenshots / video

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

A ScriptModel row move drags the grid's currentIndex along with the
moved row, and the binding only reapplies when gridIndex changes. The
wallpaper folders change reapplied it after every list rebuild, but
only while the wallpaper library is enabled. Without it, searching and
clearing the search left the focus ring on one wallpaper while Enter
picked another. Reapply it in both modes.

Clicking the clear button inside the search field took keyboard focus
and then hid itself, so Enter went nowhere until the field was clicked
again. The field's buttons now take focus only through Tab, like
DTextField's own clear button.

While typing, Left moved the text cursor instead of the selection.
Plain Left and Right now go to the grid from the search field, as in
the launcher's grid mode; Shift and Ctrl arrows still edit the text.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: unconditional viewRevision bump against both grid currentIndex bindings, plain Left/Right forwarding through DTextField.keyForwardTargets into handleKeyEvent (RTL mirroring, empty-result guard, Shift/Ctrl/Alt left to the text field), focusPolicy: Qt.TabFocus on the StyledButton-based search buttons with Tab cycling via focusTargets. Model: claude-opus-5-5.

@purian23
purian23 merged commit a481799 into duxlabs-dev:master Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants