Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blocking/disabling JavaFX 2 WebView right click

I'm looking for a way to block/disable right click in javafx.scene.web.WebView. To be more specific I don't want the context menu to show up on right click. I'm new to the technology and can't find the way to do it.

like image 749
null Avatar asked Mar 28 '12 11:03

null


1 Answers

Just for the record, it is implemented in JavaFX 2.2. See documentation for setContextMenuEnabled (JavaFX 2) and setContextMenuEnabled (JavaFX 8)

like image 154
Peter Hull Avatar answered Oct 04 '22 02:10

Peter Hull