CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 forks source link

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

Open GistCode opened 3 years ago

GistCode commented 3 years ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

OSX 'ctrl + click' converts it into a right click action on OSX making 'drag to copy' impossible

Closes #

What is the new behavior?

Use CMD key captured as metaKey for OSX https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey

Does this PR introduce a breaking change?

[ ] Yes
[X] No

Other information