mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-14 22:15:25 +00:00
Fix context menu in firefox on windows
This commit is contained in:
parent
dc54fe3d2e
commit
d0e51fb637
1 changed files with 2 additions and 2 deletions
|
@ -2313,14 +2313,14 @@ var TextInput = function(parentNode, host) {
|
|||
}
|
||||
}, 0);
|
||||
}
|
||||
if (!useragent.isGecko || useragent.isMac) {
|
||||
// if (!useragent.isGecko || useragent.isMac) {
|
||||
var onContextMenu = function(e) {
|
||||
host.textInput.onContextMenu(e);
|
||||
onContextMenuClose();
|
||||
};
|
||||
event.addListener(host.renderer.scroller, "contextmenu", onContextMenu);
|
||||
event.addListener(text, "contextmenu", onContextMenu);
|
||||
}
|
||||
// }
|
||||
};
|
||||
|
||||
exports.TextInput = TextInput;
|
||||
|
|
Loading…
Add table
Reference in a new issue