aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DragManager.ts
diff options
context:
space:
mode:
authorMonika <monika_hedman@brown.edu>2019-06-25 17:32:35 -0400
committerMonika <monika_hedman@brown.edu>2019-06-25 17:32:35 -0400
commit22d0fdc4f3114b4d46161e02265eafd371bf472d (patch)
treef42f207aa40f2d1cff66cd08c11f0ad193173ff4 /src/client/util/DragManager.ts
parentf5082af730d3fb43e4562411b072155d7e358c1c (diff)
parent219cabb3fe42ab199550efc3423b7aaed4e1ee93 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into searchUI
Diffstat (limited to 'src/client/util/DragManager.ts')
-rw-r--r--src/client/util/DragManager.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index c3c92daa5..b707dbe57 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -90,6 +90,8 @@ export namespace DragManager {
handlers: DragHandlers;
hideSource: boolean | (() => boolean);
+
+ withoutShiftDrag?: boolean;
}
export interface DragDropDisposer {
@@ -312,7 +314,7 @@ export namespace DragManager {
if (dragData instanceof DocumentDragData) {
dragData.userDropAction = e.ctrlKey || e.altKey ? "alias" : undefined;
}
- if (e.shiftKey && CollectionDockingView.Instance) {
+ if (((options && !options.withoutShiftDrag) || !options) && e.shiftKey && CollectionDockingView.Instance) {
AbortDrag();
CollectionDockingView.Instance.StartOtherDrag(docs, {
pageX: e.pageX,