FIX: Drag&Drop - move file when drop it on the tab by left + right mouse button (fixes #1287)

This commit is contained in:
Alexander Koblov 2023-09-25 20:03:16 +03:00
commit aee27d7f2e

View file

@ -1478,7 +1478,7 @@ begin
TargetPath := IncludeTrailingPathDelimiter(TargetPath);
if not Assigned(TargetFileSource) then
TargetFileSource := TFileSystemFileSource.GetFileSource;
case GetDropEffectByKeyAndMouse(GetKeyShiftState, mbLeft) of
case GetDropEffectByKeyAndMouse(GetKeyShiftStateEx, mbLeft) of
DropCopyEffect:
Self.CopyFiles(ActiveFrame.FileSource, TargetFileSource, SourceFiles, TargetPath, gShowDialogOnDragDrop);
DropMoveEffect:
@ -2682,7 +2682,7 @@ begin
begin
TargetPath := ANotebook.View[ATabIndex].CurrentPath;
TargetFileSource := ANotebook.View[ATabIndex].FileSource;
case GetDropEffectByKeyAndMouse(GetKeyShiftState, mbLeft) of
case GetDropEffectByKeyAndMouse(GetKeyShiftStateEx, mbLeft) of
DropCopyEffect:
Self.CopyFiles(ActiveFrame.FileSource, TargetFileSource, SourceFiles, TargetPath, gShowDialogOnDragDrop);
DropMoveEffect: