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

[feat] Allow Windows system tray menu open on mouse/trackpad left click #7719

Closed
kurdin opened this issue Aug 30, 2023 · 2 comments · Fixed by tauri-apps/tray-icon#189
Closed

Comments

@kurdin
Copy link

kurdin commented Aug 30, 2023

Describe the problem

On Windows, if I want to access (show) system tray menu, I need to click the right mouse/trackpad click (show menu) then left click to select menu item. This is ok by default if you don't need to access the menu too often but if have important functionality in the menu items, like dynamically generated menu items, it would be nice to have an option to allow users to show system tray menu and select items with the same mouse/trackpad button, left click for all actions, on all platforms. Currently on Mac and Linux you can use left click to open system tray menu and select items. Only Windows required to use the right click.

Describe the solution you'd like

I would like to have an option to allow create a system tray menu on Windows with option to show the menu on left click, instead of standard action on right click. Maybe just add support for SystemTray::with_menu_on_left_click on Windows platform.

63011ca#diff-6d57b6afece9589b880315885f1cce9b4e645c00428b503bb2720424b6bdea34

Alternatives considered

No response

Additional context

No response

@Levminer
Copy link

@amrbashir This got implemented in tray-icon v0.19.1 which the latest tauri version 2.1.1 uses. But it still says this is only implemented on macOS:

/// Disable or enable showing the tray menu on left click. **macOS only**.

@amrbashir
Copy link
Member

@Levminer thanks, I have opened a PR for this.

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

Successfully merging a pull request may close this issue.

3 participants