mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #722 from Tyriar/721_firefox_contextmenu
Fix context menu in firefox
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user