From 760fa32c88a6da1de188ca835ae0d6a6cdaa6909 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva <49390479+JuliaSvinareva@users.noreply.github.com> Date: Tue, 14 Jan 2020 17:09:26 +0300 Subject: [PATCH] [SSE] Fix bug when moving tabs (do not allow move tabs when pressed shift, ctrl) (#297) --- apps/common/main/lib/component/TabBar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index 9b77da678..f85ea421c 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -233,9 +233,10 @@ define([ mousedown: $.proxy(function (e) { if (this.bar.options.draggable && !_.isUndefined(dragHelper) && (3 !== e.which)) { if (!tab.isLockTheDrag) { - if (!e.ctrlKey && !e.metaKey && !e.shiftKey) + if (!e.ctrlKey && !e.metaKey && !e.shiftKey) { tab.changeState(); - dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs); + dragHelper.setHookTabs(e, this.bar, this.bar.selectTabs); + } } } }, this)