HeinrichApfelmus / threepenny-gui

GUI framework that uses the web browser as a display.
https://heinrichapfelmus.github.io/threepenny-gui/
Other
437 stars 77 forks source link

[HELP WANTED] Detect right click on a div #274

Open Lezzio opened 1 year ago

Lezzio commented 1 year ago

Hi,

I just wanted to know how I could detect a right-click on a div (have the distinction between the left one and right one)

myDiv <- UI.div on UI.myDiv cell $ \event -> do --something if it's a right-click

Thank you in advance,