Skip to content
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

In a webview, focus does not wrap around like it does in Chrome #13251

Closed
pushkin- opened this issue Jun 14, 2018 · 1 comment
Closed

In a webview, focus does not wrap around like it does in Chrome #13251

pushkin- opened this issue Jun 14, 2018 · 1 comment

Comments

@pushkin-
Copy link

pushkin- commented Jun 14, 2018

  • Electron Version: 2.0.0
  • Operating System (Platform and Version): Windows 10
  • Last known working Electron version:

Expected Behavior
I have a <webview> that points to a page with an <input> field. When I tab from that input field, I expect focus to wrap around back to the input field.

Actual behavior
Focus goes off screen and is lost forever (I can't Tab or Shift+Tab back to the input field like I can in a browser). I added a handler on the document to see what we're focused on and verified that we're not focused on anything:

document.addEventListener("keydown", function(e) {
    console.log(document.activeElement);
});

After tabbing away from the input field (twice - the first tab gets me the input field itself), that line doesn't log an element.

To Reproduce
Create a test page:

<body>
    <input type="text" width="200" />
</body>

In the electron-quick-start app, replace the contents of the body tag in index.html with:

<webview src="http://localhost:1234/testpage.html"/>

Focus on the <input> and tab a couple times. Focus never wraps around to the <input> like it would in Chrome.

@pushkin-
Copy link
Author

This is a duplicate of #12919. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants