mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 00:10:57 +00:00 
			
		
		
		
	Fix quicklaunch should only open for text keys (#2044)
This commit is contained in:
		
							parent
							
								
									46477dac0c
								
							
						
					
					
						commit
						6b8c02cf2a
					
				@ -220,7 +220,7 @@ function Home({ initialSettings }) {
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    function handleKeyDown(e) {
 | 
			
		||||
      if (e.target.tagName === "BODY" || e.target.id === "inner_wrapper") {
 | 
			
		||||
        if (e.key.match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.code === "Tab")) {
 | 
			
		||||
        if (e.key.length === 1 && e.key.match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
 | 
			
		||||
          setSearching(true);
 | 
			
		||||
        } else if (e.key === "Escape") {
 | 
			
		||||
          setSearchString("");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user