Skip to content

SetWebFocusKeepInput

Lets the game keep the player’s keys while a frame has the keyboard.

A frame that holds the keyboard normally takes every key. With keep on, the game still gets the player’s keys while no text field of the page has the focus - a player can walk with a panel open - and the page takes the keys back the moment the player clicks into a text field. It does nothing while the frame does not hold the keyboard (SetWebFocus).

Returns true when the request was handed over, false and the reason when it could not be: "no web layer", "no web interface" or "no such frame".

SetWebFocusKeepInput(frame, keep)
Parameter Type
frame string the frame’s name
keep boolean true to let the game keep the player’s keys

true, or false, reason - the reason as a person reads it

-- a quest log the player reads while walking
ShowWebFrame("quests")
SetWebFocus("quests", true, false)
SetWebFocusKeepInput("quests", true)

SetWebFocus · IsWebFocused · the Web interface group of the index