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

Edit menu is useless cause app lose focus #18518

Closed
ghost opened this issue May 30, 2019 · 3 comments
Closed

Edit menu is useless cause app lose focus #18518

ghost opened this issue May 30, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented May 30, 2019

Issue Details

  • Electron Version:
    • 5.0.x
  • Operating System:
    • Win 7, Win 10
  • Last Known Working Electron version:
    • 4.0.8

While I type some text in input/textarea, I'd like to use Edit menu to cut/copy/paste/select text.

Expected Behavior

I'd like to able perform all actions on the text I placed in input/textarea.

Actual Behavior

When click Edit menu is application lose focus and click on any menu item didn't lead to some interaction with text.

To Reproduce

https://github.com/cumajkeee/electron-quick-start/tree/edit-menu-issue
OR
Just add textarea to index.html :)

@nicodorn
Copy link

nicodorn commented Jul 11, 2019

Same issue on platform/linux.

This affects all items in the menubar, not only the text tools. I'd expect that the WebView gains focus after clicking any menubar item. Instead the menubar retains the focus. 4.x.x had the correct (IMHO) behaviour.

Workaround: If you have defined a special click event for a menubar item you can call win.focusOnWebView() afterwards, where win is the related BrowserWindow object.

Workaround 2: Stick to 4.2.x. ;-)

@ffflorian
Copy link
Contributor

This was fixed in #20019 and works for me with Electron 5.0.11.

@electron-triage
Copy link

Closing this as it is reported as fixed in the above comment. Please upgrade to a later version of Electron. We will be happy to reopen this if you are experiencing this issue on later versions of Electron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
5.0.x
Unsorted Issues
Development

No branches or pull requests

4 participants