fix: Fixes to the console focus
Server Deploy / deploy (push) Successful in 43s

This commit is contained in:
2026-07-28 12:02:48 +01:00
parent c9dab99271
commit 766dcabfde
2 changed files with 39 additions and 6 deletions
+6 -1
View File
@@ -19,6 +19,7 @@ export default function ServerConsolePage() {
disconnect: () => void;
setScale: (scale: number) => void;
resize: (width: number, height: number) => void;
focus: () => void;
} | null>(null);
const [protocol, setProtocol] = useState<string>(searchParams.get("protocol") || "");
@@ -274,7 +275,11 @@ export default function ServerConsolePage() {
<label className="text-sm text-text-secondary">Scale</label>
<select
value={zoom}
onChange={(e) => setZoom(Number(e.target.value))}
onChange={(e) => {
setZoom(Number(e.target.value));
e.target.blur();
connectionRef.current?.focus();
}}
className="rounded-lg border border-border bg-surface-2 px-3 py-2 text-sm text-text-primary focus:border-accent/50 focus:outline-none focus:ring-1 focus:ring-accent/30"
>
<option value={0.5}>50%</option>