diff --git a/src/xterm.js b/src/xterm.js index 9bfb275b..0eccfbb3 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -538,8 +538,9 @@ Terminal.prototype.initGlobal = function() { on(this.element, 'paste', pasteHandlerWrapper); if (term.browser.isFirefox) { + // Firefox doesn't appear to fire the contextmenu event on right click on(this.element, 'mousedown', event => { - if (ev.button == 2) { + if (event.button == 2) { rightClickHandler(event, this.textarea, this.selectionManager); } });