self:focus

Client

Focuses the webview, directing keyboard input to it


Syntax

local status = self:focus()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Focus a webview to capture keyboard input
local wv = webview.create()

wv:focus()

On this page