diff --git a/common/modules/mixly-modules/common/app.js b/common/modules/mixly-modules/common/app.js index 28c03304..0d10bfd1 100644 --- a/common/modules/mixly-modules/common/app.js +++ b/common/modules/mixly-modules/common/app.js @@ -82,6 +82,7 @@ class App extends Component { constructor(element) { super(); const $content = $(HTMLTemplate.get('html/app.html').render()); + $content.on('contextmenu', (e) => e.preventDefault()); this.setContent($content); this.mountOn($(element)); this.#nav_ = new Nav(); diff --git a/mixly-sw/mixly-modules/common/loader.js b/mixly-sw/mixly-modules/common/loader.js index 4c24ccdf..1666295d 100644 --- a/mixly-sw/mixly-modules/common/loader.js +++ b/mixly-sw/mixly-modules/common/loader.js @@ -33,6 +33,7 @@ const { PythonShell } = Electron; Loader.init = () => { $('body').append(XML.TEMPLATE_STR['INTERFACE']); + $('body').on('contextmenu', (e) => e.preventDefault()); if (goog.isElectron) { PythonShell.init(); }