This commit is contained in:
2026-08-16 23:50:01 +02:00
parent 9164d902df
commit d542d38213
4 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -3,5 +3,5 @@ export interface Props { showBack?: boolean; }
const { showBack = true } = Astro.props;
---
<div class="nav-bar">
{showBack && <a href="#" onclick="event.preventDefault(); history.back();">[B] Back</a>}
{showBack && <a href="/bbs/">[B] Back to Main Menu</a>}
</div>
-1
View File
@@ -7,7 +7,6 @@ export default function TerminalShell({ children }: { children?: React.ReactNode
if (e.metaKey || e.ctrlKey || e.altKey) return;
const entry = findKeyEntry(e.key);
if (!entry) return;
if (entry.href === 'back') { window.history.back(); return; }
if (entry.href === 'disconnect') { resetConnected(); window.location.href = '/'; return; }
window.location.href = entry.href;
}