-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
input cannot focus when switching webview #84216
Comments
(Experimental duplicate detection)
|
I can't repo in the current insiders builds (1.41). Please share the example extension |
I created a simple demo, modified with webview official instance, please help to look at this problem: |
when switching webview, the plug-in transmits a signal to webview through message and actively asks the input of webview to focus again. Instead of the input being focused after the mouse click on the screen |
@mjbvz I hope you can take a look at this problem when you are free |
There are are few different issues here:
Since this works fine with iframe based webviews, I assume there is some weird electron specific behavior going on here. I can't track down who is setting the focus here between the extension code running and I'm going to close this issue since we have not seen many other reports of it. Hopefully it will be fully fixed on desktop VS Code by #83188 |
Issue Type: Bug
I created a webview with just an input tag in it, and I just asked input.focus()
1、The first time you open the webview you can focus properly


2、Switch to another document or webview
3、So let's go back to the first step, the webview,the focus is gone,just click the mouse down the webview and the focus will work
VS Code version: Code 1.39.0
OS version: Windows10
The text was updated successfully, but these errors were encountered: