Skip to content

Virtual Keyboard & Text Input Focus

Quest 3D WebView features an automated text focus bridge that makes integrating 3D VR keyboards seamless.


1. Automatic Text Input Focus Detection

Whenever a user clicks or focuses an interactive HTML element on the webpage:

  • <input type="text">, <input type="password">, <input type="search">
  • <textarea>
  • Elements with contenteditable="true"

The plugin automatically fires the OnTextInputFocusChanged event delegate:

text
[ QuestWebViewComponent ] ──► ( Event OnTextInputFocusChanged )
                                       ├── WebView: UQuestWebViewComponent*
                                       └── bFocused: Boolean (True/False)

You can use bFocused to automatically show, hide, or dock your 3D VR Keyboard (e.g. WBP_VirtualKeyboard) in front of the active screen!


2. Inserting Text & Dispatching Keystrokes

SendText(Text)

Inserts the provided string directly at the current cursor position in the focused HTML input.

  • Best used for: Character typing buttons ('A', 'B', '1', '@'), voice-to-text dictation strings, or pasting URLs.

SendKey(Key)

Dispatches native keyboard control keystrokes:

EQuestWebViewKey Enum ValueFunction
BackspaceDeletes character behind cursor.
EnterSubmits form or adds newline in textarea.
TabAdvances focus to the next web input field.
Left / Right / Up / DownMoves text selection cursor.
DeleteDeletes character ahead of cursor.
Home / EndJumps to start/end of line.
EscapeClears focus or closes web dialogs.

Released for Unreal Engine 5.5 on Meta Quest.