You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In tauri 2.0, I'm opening a context menu using the new window.popup_menu() API. I can respond to selections by listening to menu events. However, I would also like to know when the user exits the menu without picking any items.
Describe the solution you'd like
A MenuEvent sent to the existing handler would be fine - perhaps popup_menu() could take an id parameter? Alternatives include adding more functions, like popup_with_dismiss_callback().
Alternatives considered
No response
Additional context
The reason I want to know when the menu is dismissed is because when the context menu opens, I modify the UI to highlight the element that the user has clicked on - I want to remove that highlight when they stop viewing the menu, even if they didn't make a selection
The text was updated successfully, but these errors were encountered:
Describe the problem
In tauri 2.0, I'm opening a context menu using the new window.popup_menu() API. I can respond to selections by listening to menu events. However, I would also like to know when the user exits the menu without picking any items.
Describe the solution you'd like
A MenuEvent sent to the existing handler would be fine - perhaps popup_menu() could take an id parameter? Alternatives include adding more functions, like popup_with_dismiss_callback().
Alternatives considered
No response
Additional context
The reason I want to know when the menu is dismissed is because when the context menu opens, I modify the UI to highlight the element that the user has clicked on - I want to remove that highlight when they stop viewing the menu, even if they didn't make a selection
The text was updated successfully, but these errors were encountered: