added ctrl+click for mac to act as right click for nodes and synapses

This commit is contained in:
Connor Turland 2014-03-02 15:56:07 -08:00
parent dfca29c9b3
commit c20c3b0e54

View file

@ -193,6 +193,12 @@ function nodeWasDoubleClicked() {
function selectNodeOnClickHandler(node, e) {
if (Mconsole.busy) return;
// catch right click on mac, which is often like ctrl+click
if (navigator.platform.indexOf("Mac")!=-1 && e.ctrlKey) {
selectNodeOnRightClickHandler(node, e)
return;
}
var check = nodeWasDoubleClicked();
if (check) {