Keyboard capture for GL.iNet Comet KVM sessions on Windows
When you access your Comet KVM through a browser, the browser may handle keyboard shortcuts locally instead of sending them to the remote computer. Comet WebView2 captures keyboard input at the Windows level and forwards it to your KVM session.
Requirements: Windows 10 or 11 (x64), the Microsoft Edge WebView2 Runtime and a reachable GL.iNet Comet.
- Extract the entire ZIP and open
Comet-WebView2.exe. - Enter the Comet’s HTTPS address and password, then click Connect. On first use, verify the certificate fingerprint before selecting Trust and connect.
- Click the console to capture the keyboard. If there is no video signal, you can also turn keyboard capture off and on using the toolbar button. Click another window to release it. Moving the pointer alone keeps capture active.
Remember password saves the password encrypted for your Windows account. Profiles and settings are stored in %LOCALAPPDATA%\Comet-WebView2.
English is built into the application, so no language files are needed. To add or customize a translation, see the language instructions.
When the toolbar shows Keyboard captured, the app forwards every press and release it receives for the mapped keys. You can use any combination of those keys without registering a shortcut or editing a configuration file.
A few examples in the KVM session:
- Ctrl+W closes the active tab in a browser.
- Alt+Tab switches between Windows applications.
- Win+V opens Windows clipboard history if enabled.
Windows handles physical Ctrl+Alt+Del on the local PC. To send it to the remote computer, use the KVM interface. After returning from the local Windows security screen, click the console again to resume keyboard capture.
Use the toolbar button to turn capture off. Typing only means system shortcuts may still act locally.
flowchart LR
app[Comet WebView2] -->|Keystrokes| kvm[GL.iNet Comet]
kvm -->|WebRTC video| app
The Comet firmware handles the microphone, camera and other peripherals.
| Task | Tools | Command |
|---|---|---|
| Build the executable | Stable Rust x64 (MSVC) via rustup, Visual Studio C++ Build Tools and Windows SDK | cargo build --release --locked |
| Create the portable ZIP | Build tools above + Windows PowerShell 5.1 or later | powershell -NoProfile -ExecutionPolicy RemoteSigned -File .\scripts\build.ps1 |
| Run Rust tests | Same tools as the build | cargo test --locked |
| Run interface and keyboard bridge tests | Node.js 24 | node --test "tests/*.test.mjs" |
The executable is written to target\release\comet-webview2.exe and the ZIP to dist\Comet-WebView2.zip.
The standard MSVC ZIP contains the executable, license, and third-party notices. The LLVM-MinGW build also includes the DLLs and license it needs.
For the source map, lifecycle, Rust/JavaScript contracts and maintenance decisions, see the developer guide.
