- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 452
 
RWD theme: Focus on the search field when clicking on the search button #3095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Shyim <[email protected]>
| 
           @kiatng @addison74 what do you think about this?  | 
    
| 
           I haven't abandoned the ship. Unfortunately, the last month came with major changes in my life for which I was not prepared. I am trying to recover mentally, even though it's overwhelming. I think that OpenMage should be rethought as a project based on sponsorships and thus a permanent maintenance team would have been built to work dedicatedly without any periods of inactivity.  | 
    
| 
           @addison74 sorry to head that :-( wish you the best  | 
    
…on (#3095) Co-authored-by: Shyim <[email protected]>
In the RWD theme, mobile version, when you click the search button here:
it shows the search field but you've to tap on it in order to be able to write the search query.
I think this is not the best behaviour, when clicking on the search button I'd like the search field to be shown with the focus already in the field, so that I can directly start to type without another (unnecessary) click.
This PR adds a few lines of js in order to implement that.
Note: there's a try/catch just in case a custom there doesn't have the #search field (although it's very unlikely).