mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Update index.jsx
This commit is contained in:
		
							parent
							
								
									3b05655fb0
								
							
						
					
					
						commit
						494a1c50d5
					
				@ -214,7 +214,7 @@ function Home({ initialSettings }) {
 | 
			
		||||
  useEffect(() => {
 | 
			
		||||
    function handleKeyDown(e) {
 | 
			
		||||
      if (e.target.tagName === "BODY" || e.target.id === "inner_wrapper") {
 | 
			
		||||
        if (String.fromCharCode(e.keyCode).match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.code === "Tab")) {
 | 
			
		||||
        if (e.key.match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.code === "Tab")) {
 | 
			
		||||
          setSearching(true);
 | 
			
		||||
        } else if (e.key === "Escape") {
 | 
			
		||||
          setSearchString("");
 | 
			
		||||
@ -375,7 +375,7 @@ export default function Wrapper({ initialSettings, fallback }) {
 | 
			
		||||
      >
 | 
			
		||||
        <div
 | 
			
		||||
        id="inner_wrapper"
 | 
			
		||||
        tabindex="-1"
 | 
			
		||||
        tabIndex="-1"
 | 
			
		||||
        className={classNames(
 | 
			
		||||
          'fixed overflow-auto w-full h-full',
 | 
			
		||||
          backgroundBlur && `backdrop-blur${initialSettings.background.blur.length ? '-' : ""}${initialSettings.background.blur}`,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user