diff --git a/islands/KMenu.tsx b/islands/KMenu.tsx index 5b8f12d..16c7e39 100644 --- a/islands/KMenu.tsx +++ b/islands/KMenu.tsx @@ -127,6 +127,9 @@ export const KMenu = ( if (ev.key === "Enter") { activateEntry(entries[activeIndex.value]); + if (input.current) { + input.current.value = ""; + } } if (ev.key === "ArrowUp") { diff --git a/routes/_app.tsx b/routes/_app.tsx index abb2b2f..9d564ff 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -2,11 +2,13 @@ import { PageProps } from "$fresh/server.ts"; import { Head } from "$fresh/runtime.ts"; export default function App({ Component }: PageProps) { - const css = Deno.readTextFileSync("./static/global.css").replace("\n", ""); + const globalCss = Deno + .readTextFileSync("./static/global.css") + .replaceAll("\n", ""); return ( <> - + - - - - + + app +