vemu.

type

CaptureKeysMode

How useVemu captures keyboard input for the guest (joypad + USB-HID keyboard): - `"focus"` (default) - keystrokes are forwarded only while an element registered via UseVemuResult.registerKeyCapture (the terminal or canvas rendered by `VemuTerminal` / `VemuCanvas` / `VemuConsole`) contains the document focus. Page-level typing outside the emulator is untouched. - `"window"` - every keystroke on the page is forwarded while the emulator runs (the pre-0.10 behaviour). Use for full-page emulator apps only. - `"off"` - no keyboard capture at all (UART input via the terminal still works; it goes through xterm's own focused textarea, not these listeners).

type CaptureKeysMode = "window" | "focus" | "off"