Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Drag to clone with command key(metaKey) instead of ctrlKey #907

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@circlon/angular-tree-component",
"version": "11.0.4",
"version": "11.0.6",
"description": "A simple yet powerful tree component for Angular2",
"author": "Circlon Group <os-group@circlon.de>",
"homepage": "https://github.com/CirclonGroup/angular-tree-component",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const TREE_ACTIONS = {
PREVIOUS_NODE: (tree: TreeModel, node: TreeNode, $event: any) => tree.focusPreviousNode(),
MOVE_NODE: (tree: TreeModel, node: TreeNode, $event: any, {from , to}: {from: any, to: any}) => {
// default action assumes from = node, to = {parent, index}
if ($event.ctrlKey) {
if ($event.ctrlKey || $event.metaKey) {
tree.copyNode(from, to);
} else {
tree.moveNode(from, to);
Expand Down