Skip to content

Poweruser search, use / to focus on searchinput - #806

Open
tswfi wants to merge 2 commits into
PrestaShop:developfrom
tswfi:poweruser_search_new
Open

Poweruser search, use / to focus on searchinput#806
tswfi wants to merge 2 commits into
PrestaShop:developfrom
tswfi:poweruser_search_new

Conversation

@tswfi

@tswfi tswfi commented Nov 10, 2025

Copy link
Copy Markdown
Contributor
Questions Answers
Description? Poweruser search. Use / to focus on the searchInput field
Type? new feature
BC breaks? no
Deprecations? no
Fixed ticket? -
Sponsor company
How to test? Open a page and type / , check that search input is focused (and on mobile the offCanvas is open) and ready for searching. Check that the / can still be typed on input fields elsewhere (the search focus should only happen if you are not in a input field already)

this replaces pr #797

@nicosomb

Copy link
Copy Markdown
Contributor

FYI, this shortcut is used on some browsers (for example, Firefox) to open the browser's search form.

@tswfi

tswfi commented Nov 13, 2025

Copy link
Copy Markdown
Contributor Author

FYI, this shortcut is used on some browsers (for example, Firefox) to open the browser's search form.

the browser probably wins there..

I wonder if there is a best practice for this defined somewhere...

@ga-devfront

Copy link
Copy Markdown
Contributor

However, ctrl + k opens the search function in the Chrome browser (same as / for Firefox).
I completely understand the PR's intention, which I think is very good, but I don't know if it's going to backfire...

@Hlavtox

Hlavtox commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

I think I can call myself a poweruser, I navigate most of everything by keyboard shortcuts, but I have never heard or used of a slash for search.

Search is CTRL+F. :-)

@tswfi

tswfi commented Nov 17, 2025

Copy link
Copy Markdown
Contributor Author

I think I can call myself a poweruser, I navigate most of everything by keyboard shortcuts, but I have never heard or used of a slash for search.

Search is CTRL+F. :-)

found the windows user :)

However, ctrl + k opens the search function in the Chrome browser (same as / for Firefox). I completely understand the PR's intention, which I think is very good, but I don't know if it's going to backfire...

any better ideas?

@ga-devfront ga-devfront added the Improvement Enhances existing features or code. label Nov 17, 2025
@tblivet tblivet added the Deferred It requires more time, context, or resources before it can be addressed. label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deferred It requires more time, context, or resources before it can be addressed. Improvement Enhances existing features or code.

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

6 participants