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

Shift instead of Alt to copy? #2979

Open
d07RiV opened this issue Jan 19, 2021 · 1 comment · May be fixed by #3498
Open

Shift instead of Alt to copy? #2979

d07RiV opened this issue Jan 19, 2021 · 1 comment · May be fixed by #3498

Comments

@d07RiV
Copy link

d07RiV commented Jan 19, 2021

Is it possible to use shift modifier to copy items instead of moving them? Every app uses shift for this purpose. Why is it hardcoded to Alt instead?

    return {
        dropEffect: this.altKeyPressed ? 'copy' : 'move',
        ...(sourceNodeOptions || {}),
    };
@d07RiV
Copy link
Author

d07RiV commented Mar 25, 2021

Also it seems that
(1) It is impossible to determine drop result in target's drop handler (only source)
(2) It is impossible to monitor the current drop effect to style the source/destination elements accordingly (i.e. not hide the item in the source box when copy key is held).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant