We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c680fe7 + 726f4b3 commit 3cebc43Copy full SHA for 3cebc43
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