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

Tray icon right-click event #99

Open
sindresorhus opened this issue Dec 17, 2013 · 2 comments
Open

Tray icon right-click event #99

sindresorhus opened this issue Dec 17, 2013 · 2 comments

Comments

@sindresorhus
Copy link

Copied from nwjs#930

Many tray (menubar) apps on OS X have different behavior on click and right-click.

Some don't show a menu when clicked, but instead changes the icon and does an action, but shows a menu for eg. Preferences and Quit on right-click:

Normal:

screen shot 2013-07-29 at 21 27 16

Clicked:

screen shot 2013-07-29 at 21 27 21

Right-clicked:

screen shot 2013-07-29 at 21 27 38

Unfortunately there isn't a built-in method to do right-click directly on a NSStatusItem, but it's easy to achieve it with a custom view. There's a handy library that handles it for you: https://github.com/heardrwt/RHStatusItemView

This might be possible on Linux/Windows too, I haven't researched, but I'm interested in OS X support.

@trevorlinton
Copy link
Member

Shouldn't be a difficult item to add.

@paolooo
Copy link

paolooo commented Apr 23, 2014

+1

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

No branches or pull requests

3 participants