Skip to content

wallpaper: fix keyboard focus after closing the file picker - #4148

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-browser-focus
Nov 5, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
Conava:wallpaper-browser-focus

Conversation

@Conava

@Conava Conava commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Description

After the file picker in the wallpaper tab closes, focus stays on the folder button. Enter and Space then open the picker again instead of selecting the wallpaper, while the arrow keys still move the selection, so it looks like the grid is focused. Focus now goes back to the grid when the picker closes, in both the dash and the island.

The island also did not get the keyboard back on Hyprland until it was clicked. It now takes exclusive keyboard focus for a short moment when the keyboard is handed back, which also covers the clear confirmation of the clipboard in the island.

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

After the file picker opened from the wallpaper tab closes, focus stays
on the folder button, so Enter and Space reopen the picker instead of
acting on the grid. Hand focus back to the tab when the picker closes,
in both the dash popout and the island.

The island also did not get the keyboard back on Hyprland until it was
clicked, because on-demand focus is not returned when the surface that
took it closes. Take exclusive focus for 80 ms when the keyboard is
handed back.
@github-actions github-actions Bot added fix ui Quickshell UI under quickshell/ labels Nov 5, 2026
@bbedward

bbedward commented Nov 5, 2026

Copy link
Copy Markdown
Member

/claude review

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: dialogClosed emission and the customKeyboardFocus handoff in FileBrowserSurfaceModal, focusInitial() on the DDash keyForwardTarget (null in the island, so ?. is a no-op), focusFace re-entry in WallpaperExpanded, the reclaim timer and Exclusive policy against every keyboardYielded reset in IslandController, consumers of keyboardFocusPolicy (DBar, Frame, free host), and idle cost (one-shot 80ms timer). Model: claude-opus-5-5.

@bbedward
bbedward merged commit 7e7ab5b into duxlabs-dev:master Nov 5, 2026
5 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 5, 2026
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