mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	Theme: enable autofocus of #q only on the index page and when the width > 50em
Related to #1270
This commit is contained in:
		
							parent
							
								
									96dc4369d5
								
							
						
					
					
						commit
						fbad93e808
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user