diff --git a/src/components/App.tsx b/src/components/App.tsx index f42e479..a1162f2 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -7,12 +7,19 @@ import { ServerBar } from "@components/ServerBar.tsx"; export function App(): ReactElement { const [serverName, setServerName] = useState("undefined"); + window.addEventListener("keydown", (e) => { + if (e.ctrlKey || e.metaKey || e.altKey) return; + const chatbar = document.getElementById("editor"); + chatbar?.focus(); + chatbar?.onkeydown?.(e); + }); + return (