Files
lhns--steam-frame-nix/modules/vr-keyboard/unpatch-panel.js
T
Pierre Kisters ee020d39d5 VR keyboard: swipe typing, suggestions, Backspace drag (keyboard.vr.*)
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.
2026-09-28 04:42:13 +02:00

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';
})()