https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
a

Adam Brown

02/10/2023, 5:37 AM
might be nice, or maybe this already exists? to have some sort of
onAltClick
modifier specifically in compose-desktop, which maps to a right click on desktop, and a long press on touch screens.
e

ephemient

02/10/2023, 10:27 AM
I would just like to leave a reminder that desktops can have touch screens and that mobile devices can have precise pointers with multiple buttons too.
a

Adam Brown

02/12/2023, 12:52 AM
well great, it can work that way on all devices 😄
e

ephemient

02/12/2023, 2:01 AM
I guess this is something that might be part of https://issuetracker.google.com/issues/257477742, although I can't access the doc…
it's a shame that
Modifier.combinedClickable()
doesn't seem to handle this even though Android's
View.setOnContextClickListener()
does :(
n

Nikita Lipsky

02/13/2023, 1:43 PM
I have created an enhancement on this: https://github.com/JetBrains/compose-jb/issues/2739
12 Views