Skip to content
Snippets Groups Projects
Commit 4979a472 authored by GyDi's avatar GyDi
Browse files

feat: press esc hide the window

parent 4e8d4f45
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,12 @@ const Layout = () => {
});
const [dialogOpen, setDialogOpen] = useState(false);
useEffect(() => {
window.addEventListener("keydown", (e) => {
if (e.key === "Escape") windowHide();
});
}, []);
useEffect(() => {
if (!vergeConfig) return;
setBlur(!!vergeConfig.theme_blur);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment