Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

608 B
Raw Blame
"use client";

import { useEffect } from "react";

// F3 opens/toggles the shell's window overview (Mission Control on macOS,
// Task View on Windows) — ⌘/Ctrl+Up is taken by maximize. Local to the shell
// that mounts it, so switching shells drops the overlay with the chrome.
export function useOverviewKey(open: () => void) {
  useEffect(() => {
    const onKey = (e: KeyboardEvent) => {
      if (e.key === "F3") {
        e.preventDefault();
        open();
      }
    };
    window.addEventListener("keydown", onKey);
    return () => window.removeEventListener("keydown", onKey);
  }, [open]);
}