forked from MapComplete/MapComplete
		
	Add 'ctrl+F' to select the search box immediately
This commit is contained in:
		
							parent
							
								
									8f51dd8d64
								
							
						
					
					
						commit
						92b311bffa
					
				
					 3 changed files with 22 additions and 10 deletions
				
			
		|  | @ -92,13 +92,13 @@ export default class MoreScreen extends Combine { | |||
| 
 | ||||
|         if (onMainScreen) { | ||||
|             search.focus() | ||||
|             document.addEventListener("keydown", function (event) { | ||||
|                 if (event.ctrlKey && event.code === "KeyF") { | ||||
|                     search.focus() | ||||
|                     event.preventDefault() | ||||
|                 } | ||||
|             }) | ||||
|         } | ||||
|         document.addEventListener("keydown", function (event) { | ||||
|             if (event.ctrlKey && event.code === "KeyF") { | ||||
|                 search.focus() | ||||
|                 event.preventDefault() | ||||
|             } | ||||
|         }) | ||||
| 
 | ||||
|         const searchBar = new Combine([ | ||||
|             Svg.search_svg().SetClass("w-8"), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue