-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
[bug] SystemTray shows the menu on LeftClick
, it should be on RightClick
only
#317
Comments
If you have a menu attached, why wouldn't you want to show it? just want to know your use-case. IIRC, some platforms are hard coded to open a context menu when the icon is clicked (Linux and maybe macOS). |
I found SystemTrayEvent::LeftClick and SystemTrayEvent::RightClick all will show tray menu. |
I see, that's a valid use-case and one that I am interested into but you should know that tray click events on Linux doesn't work (limitation of Linux itself). I will transfer this to Tao. |
Ideally we want right click to show the menu without the left click. |
Great! |
LeftClick
, it should be on RightClick
only
All applications I used will trigger the try both right and left clicks. |
It is good to follow the OS convention, but I remember @lemarier showed a demo of 1password app where |
Alright, I will close this since it is the OS default behavior but If more people ask for this, we will reconsider. |
Describe the bug
default SystemTrayEvent::LeftClick will show Tray Menu, I not found API or setting to disable the behavior.
https://tauri.studio/docs/guides/system-tray
Reproduction
No response
Expected behavior
No response
Platform and versions
Operating System - Mac OS, version 12.2.1 X64 Node.js environment Node.js - 16.13.2 @tauri-apps/cli - 1.0.0-rc.2 @tauri-apps/api - 1.0.0-rc.0 Global packages npm - 8.1.2 pnpm - 6.30.0 yarn - 1.22.17 Rust environment rustc - 1.58.1 cargo - 1.58.0 Rust environment rustup - 1.24.3 rustc - 1.58.1 cargo - 1.58.0 toolchain - stable-x86_64-apple-darwin App directory structure /dist /node_modules /src-tauri /src App tauri.rs - 1.0.0-rc.0 build-type - bundle CSP - default-src 'self' distDir - ../dist devPath - http://localhost:3000/ framework - React
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: