Skip to content

fix: select and focus search input fields on Ctrl-F#2365

Merged
mejo- merged 3 commits intomainfrom
fix/search_ctrl_f_shortcut
Mar 24, 2026
Merged

fix: select and focus search input fields on Ctrl-F#2365
mejo- merged 3 commits intomainfrom
fix/search_ctrl_f_shortcut

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Mar 23, 2026

📝 Summary

fix(PageList): select and focus filter on Ctrl-F

  • First Ctrl-F: select + focus page filter
  • Second Ctrl-F: open unified search
  • Third Ctrl-F: open browser search util

Fixes: #2317

fix(MemberPicker): Focus member search on Ctrl-F

If member search is not focussed:

  • First Ctrl-F: select + focus member search
  • Second Ctrl-F: open unified search
  • Third Ctrl-F: open browser search util

If member search is already focussed:

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests

mejo- added 2 commits March 23, 2026 17:44
- First Ctrl-F: select + focus page filter
- Second Ctrl-F: open unified search
- Third Ctrl-F: open browser search util

Fixes: #2317

Signed-off-by: Jonas <jonas@freesources.org>
If member search is not focussed:

- First Ctrl-F: select + focus member search
- Second Ctrl-F: open unified search
- Third Ctrl-F: open browser search util

If member search is already focussed:

- First Ctrl-F: open unified search
- Second Ctrl-F: open browser search util

Fixes: #2303

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- self-assigned this Mar 23, 2026
@mejo- mejo- added bug Something isn't working 3. to review labels Mar 23, 2026
Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was confused by the stack at first. I was expecting the handler to go through the stack until one item handles the event. But now I see that the stack is just for keeping the other handlers around for the time when the topmost element on the stack has been popped.

Playwright seems to be unhappy in the NavigationSection still.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/search_ctrl_f_shortcut branch from cf83923 to 62b7ff2 Compare March 24, 2026 11:52
@mejo-
Copy link
Member Author

mejo- commented Mar 24, 2026

Playwright seems to be unhappy in the NavigationSection still.

Good catch, fixed now by first hovering over the three-dot-menu before clicking it.

@mejo- mejo- merged commit 6fe8bc5 into main Mar 24, 2026
58 of 59 checks passed
@mejo- mejo- deleted the fix/search_ctrl_f_shortcut branch March 24, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Searching via "Search pages" filter not discoverable Members overview and global search stealing each others focus

2 participants