Skip to main content

focus_webview

Function focus_webview 

Source
pub fn focus_webview(webview: &Webview<Wry>) -> Result<()>
Available on neither Android nor iOS.
Expand description

Gives keyboard focus to webview, a child webview placed with webview_frame, as clicking it would. Use it when a GPUI control opens something in the webview that expects typing, such as a search box.

Must be called on the main thread. On Linux the webview must be shown (painted in the last frame); elsewhere this is Webview::set_focus.