Using the webview from our guide Hello World, there is some
magic going on in the background to correctly capture keyboard and mouse events. This automatic mouse
setup is done whenever you add a TextureRect
or MeshInstance3D
a child-node of the WebView
.
This can be controlled by checking these checkboxes:
Or programmatically:
These options capture mouse and keys, taking into account things like the screen resolution, keyboard locale, key modifiers, etc.
To have total control over mouse and keyboard, visit advanced key/mouse usage
To have total control over the webview, checkout advanced webview usage