From 91d1d753addec03c9176e04016476495d0e55dd2 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sun, 12 Jan 2020 11:42:44 -0800 Subject: [PATCH] Eat context menu events. Fixes #21 --- js/ui/apple2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/ui/apple2.js b/js/ui/apple2.js index d8aed6a..0750eed 100644 --- a/js/ui/apple2.js +++ b/js/ui/apple2.js @@ -811,6 +811,9 @@ export function initUI(apple2, disk2, cffa, e) { io.buttonUp(evt.which == 1 ? 0 : 1); } }); + canvas.addEventListener('contextmenu', function(evt) { + evt.preventDefault(); + }); }); document.body.addEventListener('mousemove', _mousemove);