Fix context menu in firefox on windows

This commit is contained in:
James Allen 2014-08-06 15:49:40 +01:00
parent dc54fe3d2e
commit d0e51fb637

View file

@ -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;