Fix context menu in firefox

Fixes #721
This commit is contained in:
Daniel Imms
2017-06-20 10:01:39 -07:00
parent 75b74ac4ff
commit 32f1782c84
+2 -1
View File
@@ -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);
}
});