mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 04:04:16 +02:00
Opt-in with steamFrame.keyboard.vr.enable; swipe, autocorrect and completion suggestions, Backspace drag and haptics are on under it. - vr-keyboard/patch.js (Steam UI): swipe decoder, a model of what the keyboard typed, suggestions that only replace what they typed, Backspace drag with word detents and retyping; checks its Steam internals by signature (signatures.json: vr-keyboard) and stays stock otherwise. - vr-keyboard/panel.js (SteamVR systemui) + relay.mjs (user service vr-keyboard-relay): the suggestion strip as a dashboard panel below or above the keyboard (signatures: vr-keyboard-panel). - Dictionary built from nixpkgs' wordfreq and hunspellDicts; default: the keyboard.layout language (de, fr, es, it, nl, pt, sv) plus English. - Tests: keyboard.vr.checks and the flake check vr-keyboard.
10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
// Reverts panel.js in SteamVR's systemui page: removes the strip panel, its
|
|
// embedded-UV slot and stylesheet. Safe when nothing is patched.
|
|
(() => {
|
|
const S = window.__sfuiKbdStrip;
|
|
if (!S) return 'not patched';
|
|
try { S.dispose?.(); } catch { /* gone */ }
|
|
delete window.__sfuiKbdStrip;
|
|
return 'unpatched';
|
|
})()
|