Merge pull request #1272 from dalf/issue-1270
Theme: enable autofocus of #q only on the index page and when the width > 50em
This commit is contained in:
		
						commit
						045ce76fae
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								searx/static/themes/simple/js/searxng.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								searx/static/themes/simple/js/searxng.min.js
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -86,7 +86,7 @@ | |||||||
| 
 | 
 | ||||||
|       qinput.addEventListener('focus', placeCursorAtEndOnce, false); |       qinput.addEventListener('focus', placeCursorAtEndOnce, false); | ||||||
| 
 | 
 | ||||||
|       if (!isMobile) { |       if (!isMobile && document.querySelector('.index_endpoint')) { | ||||||
|         qinput.focus(); |         qinput.focus(); | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user