8000 Add mouse-enter/leave events for tray icon on Windows · Issue #13559 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add mouse-enter/leave events for tray icon on Windows #13559
Closed
@pronebird

Description

@pronebird

Is your feature request related to a problem? Please describe.

Feature.

I am building an app that pops up from the tray on Windows and currently the way it works is the following:

  1. Clicks on tray icon toggle the window's visibility
  2. Clicks anywhere outside, hide the window (using window.blur event)

Since tray.click fires way too late, after window.blur, there is no way to tell a user intent. For example: a user may be clicking on the tray icon once again to hide the window.

Describe the solution you'd like

Add mouse-over and mouse-leave events for tray icon. This could help to figure out the cause of window.blur event. This is not entirely true and precise but this will cover at least 99% of the cases.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0