|
|
|
@ -435,23 +435,19 @@ const noteTree = (function() {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
// Handle Ctrl-C, -X and -V
|
|
|
|
// Handle Ctrl-C, -X and -V
|
|
|
|
// case 67:
|
|
|
|
case 67:
|
|
|
|
// if (event.ctrlKey) { // Ctrl-C
|
|
|
|
if (event.ctrlKey) { // Ctrl-C
|
|
|
|
// copyPaste("copy", node);
|
|
|
|
contextMenu.copy(node);
|
|
|
|
// return false;
|
|
|
|
return false;
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// break;
|
|
|
|
break;
|
|
|
|
case 86:
|
|
|
|
case 86:
|
|
|
|
console.log("CTRL-V");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (event.ctrlKey) { // Ctrl-V
|
|
|
|
if (event.ctrlKey) { // Ctrl-V
|
|
|
|
contextMenu.pasteAfter(node);
|
|
|
|
contextMenu.pasteAfter(node);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 88:
|
|
|
|
case 88:
|
|
|
|
console.log("CTRL-X");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (event.ctrlKey) { // Ctrl-X
|
|
|
|
if (event.ctrlKey) { // Ctrl-X
|
|
|
|
contextMenu.cut(node);
|
|
|
|
contextMenu.cut(node);
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|