Skip to content

Conversation

@mguinness
Copy link
Contributor

@mguinness mguinness commented Mar 25, 2021

I had an issue where dragging wasn't enabled when copy command was removed but cut command was still active.

bootCallback: function (fm) {
    delete fm.commands.copy;
}

This change now allows dragging when only cut is active. I still have a problem when either shiftKey or ctrlKey modifier is used to allow copy. I commented out the line below as a workaround, is there a way to check to see if copy command is enabled?

helper.toggleClass('elfinder-drag-helper-plus', helper.data('locked')? true : ctr);

Or maybe a uiOptions similar to metakeyDragout for cwd?

@mguinness
Copy link
Contributor Author

Added enableDragCopy to options and prevent copy when command not enabled.

@nao-pon
Copy link
Member

nao-pon commented Jun 9, 2021

@mguinness I have created Issue #3302 to fix this.

@nao-pon nao-pon closed this Jun 9, 2021
@nao-pon
Copy link
Member

nao-pon commented Jun 9, 2021

I fixed by 5eebd92 .

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 this pull request may close these issues.

2 participants