added ctrl+click for mac to act as right click for nodes and synapses
This commit is contained in:
parent
dfca29c9b3
commit
c20c3b0e54
1 changed files with 6 additions and 0 deletions
|
@ -194,6 +194,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) {
|
||||
nodeDoubleClickHandler(node, e);
|
||||
|
|
Loading…
Reference in a new issue