Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Intersect.Client.Core/Core/Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Intersect.Client.Entities;
using Intersect.Client.Framework.GenericClasses;
using Intersect.Client.Framework.Graphics;
using Intersect.Client.Framework.Gwen.DragDrop;
using Intersect.Client.Framework.Gwen.Input;
using Intersect.Client.Framework.Input;
using Intersect.Client.General;
Expand Down Expand Up @@ -138,6 +139,11 @@ public static void OnKeyPressed(Keys modifier, Keys key)
return;
}

if (DragAndDrop.IsDragging)
{
return;
}

var gameUi = Interface.Interface.GameUi;

// First try and unfocus chat then close all UI elements, then untarget our target.. and THEN open the escape menu.
Expand Down Expand Up @@ -196,7 +202,7 @@ public static void OnKeyPressed(Keys modifier, Keys key)
break;

case Control.ToggleGui:
if (currentGameState == GameStates.InGame)
if (currentGameState == GameStates.InGame && !DragAndDrop.IsDragging)
{
Interface.Interface.HideUi = !Interface.Interface.HideUi;
}
Expand Down Expand Up @@ -249,6 +255,11 @@ public static void OnKeyPressed(Keys modifier, Keys key)
break;
}

if (DragAndDrop.IsDragging)
{
break;
}

switch (control)
{
case Control.Block:
Expand Down
Loading
Loading