Skip to content

Is it possible to get modifier key status when a button clicked? #3351

Answered by andydotxyz
aztack asked this question in Q&A
Discussion options

You must be logged in to vote

What you post as equivalent web code actually isn't. A button being tapped is not a click event - it is an abstraction of mouse/touch coded into the button widget.
If you listen to the actual mouse events they have a modifier set just like on the web https://developer.fyne.io/api/v2.1/driver/desktop/mouseable.html. Of course that code is desktop specific, as a touchscreen does not work that way.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@aztack
Comment options

@Jacalz
Comment options

Jacalz Oct 30, 2022
Collaborator

Answer selected by Jacalz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3350 on October 22, 2022 17:39.