one line `webview.setFocus` won't work because it will trigger the window to lose focus first to close the window
one line
webview.setFocuswon't work because it will trigger the window to lose focus first to close the window