mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 07:00:27 +02:00
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:
1 parent
d04c81e0bf
commit
f7eadb9ac1
3 files changed
+38
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user