mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-07 07:43:39 +01:00
Update index.jsx
This commit is contained in:
parent
3b05655fb0
commit
494a1c50d5
@ -214,7 +214,7 @@ function Home({ initialSettings }) {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
function handleKeyDown(e) {
|
function handleKeyDown(e) {
|
||||||
if (e.target.tagName === "BODY" || e.target.id === "inner_wrapper") {
|
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);
|
setSearching(true);
|
||||||
} else if (e.key === "Escape") {
|
} else if (e.key === "Escape") {
|
||||||
setSearchString("");
|
setSearchString("");
|
||||||
@ -375,7 +375,7 @@ export default function Wrapper({ initialSettings, fallback }) {
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
id="inner_wrapper"
|
id="inner_wrapper"
|
||||||
tabindex="-1"
|
tabIndex="-1"
|
||||||
className={classNames(
|
className={classNames(
|
||||||
'fixed overflow-auto w-full h-full',
|
'fixed overflow-auto w-full h-full',
|
||||||
backgroundBlur && `backdrop-blur${initialSettings.background.blur.length ? '-' : ""}${initialSettings.background.blur}`,
|
backgroundBlur && `backdrop-blur${initialSettings.background.blur.length ? '-' : ""}${initialSettings.background.blur}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user