Keyboard patch: Enter types Return in app windows despite stale Steam search focus

Steam's VirtualKeyboardManager keeps the props of the last focused Steam text
field (m_ActiveElementProps) after leaving the dashboard. With a search box
there, the VR keyboard for a gamescope window showed "Search" on Enter and
its onEnterKeyPress returned "VKClose", hiding the keyboard instead of
sending Return. While the keyboard serves something other than this Steam
UI, ignore those props and the dismiss-on-Enter flag.
This commit is contained in:
Pierre Kisters committed 2026-09-27 19:20:21 +02:00
1 parent d04c81e0bf
commit f7eadb9ac1
3 files changed
+38 -1

No files matched your search

+3
View File
@@ -10,6 +10,9 @@
for (const l of window.__vrkbdLayouts || []) unwrap(l, 'rgLayout');
unwrap(SteamClient.Input, 'ControllerKeyboardSendText');
unwrap(window.__vrkbdProto, 'TypeKeyInternal');
const Manager = window.__vrkbdWr(5363).PE.prototype;
unwrap(Manager, 'GetEnterKeyLabel');
unwrap(Manager, 'HandleVirtualKeyDown');
clearInterval(window.__vrkbdHoldTimer);
const inst = window.__vrkbdInst;