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

win.show has problems with focus in some cases #26277

Closed
3 tasks done
EthianWong opened this issue Oct 30, 2020 · 3 comments
Closed
3 tasks done

win.show has problems with focus in some cases #26277

EthianWong opened this issue Oct 30, 2020 · 3 comments

Comments

@EthianWong
Copy link
Contributor

EthianWong commented Oct 30, 2020

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • >=9.1.0
  • Operating System:
    • macOS 10.15.7 (19H2)
  • Last Known Working Electron version:
    • 9.0.4

Expected Behavior

The focus can be handled correctly when win.show() is executed

Actual Behavior

The focus is a bit weird after executed win.show()

To Reproduce

  1. Open a electron app
  2. Focus on textarea or input
  3. Click other applications or use command + tab go to other applications (electron window not min & hide)
  4. Click electron app tray to execute win.show()
  5. Press key 'i'

Screenshots

When electron version >= 9.1.0:

The application name is displayed in the taskbar so electron app should be focused, but the window control buttons do not light up as normal and input candidate area move to lower left

When electron version < 9.1.0:

Additional Information

In 9.1.0 upgrade log: #24354
I don't know if it is related to this, but i try a lot of times, v9.0.4 is ok

@kenan2002
Copy link

kenan2002 commented Jan 22, 2021

Same issue here. win.show() called from tray click, cursor seems focused but traffic lights are gray and keyboard events not fired in window.

My workaround: call win.hide() first before win.show()

Electron 11.1.1
macOS 10.14.6/10.15/11.0.1

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2022

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@github-actions github-actions bot added the stale label Oct 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2022

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2022
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

3 participants