Browse Source

屏蔽右键

master
vito 9 years ago
parent
commit
2dd0c8b75d
  1. 1
      designer_base/src/com/fr/design/extra/PluginWebPane.java

1
designer_base/src/com/fr/design/extra/PluginWebPane.java

@ -48,6 +48,7 @@ public class PluginWebPane extends JFXPanel {
}); });
JSObject obj = (JSObject) webEngine.executeScript("window"); JSObject obj = (JSObject) webEngine.executeScript("window");
obj.setMember("PluginHelper", PluginWebBridge.getHelper(webEngine)); obj.setMember("PluginHelper", PluginWebBridge.getHelper(webEngine));
webView.setContextMenuEnabled(false);//屏蔽右键
root.setCenter(webView); root.setCenter(webView);
} }
}); });

Loading…
Cancel
Save