We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c680fe7 commit 726f4b3Copy full SHA for 726f4b3
1 file changed
wrywebview/src/main/rust/lib.rs
@@ -778,9 +778,7 @@ fn focus_inner(id: u64) -> Result<(), WebViewError> {
778
wry_log!("[wrywebview] gtk grab_focus called");
779
}
780
781
- webview
782
- .evaluate_script("document.documentElement.focus(); window.focus();")
783
- .map_err(WebViewError::from)
+ webview.focus().map_err(WebViewError::from)
784
})
785
786
0 commit comments