Fix context menu not marking input as handled correctly.

This commit is contained in:
Pieter-Jan Briers
2021-04-19 01:45:02 +02:00
parent 4c99420bf7
commit 4a8559ab37

View File

@@ -133,6 +133,7 @@ namespace Content.Client.GameObjects.EntitySystems
inputSys.HandleInputCommand(session, func, message);
}
CloseAllMenus();
args.Handle();
return;
}
@@ -197,12 +198,14 @@ namespace Content.Client.GameObjects.EntitySystems
if (args.Function == ContentKeyFunctions.OpenContextMenu)
{
_verbSystem.OnContextButtonPressed(entity);
args.Handle();
return;
}
if (args.Function == ContentKeyFunctions.ExamineEntity)
{
_systemManager.GetEntitySystem<ExamineSystem>().DoExamine(entity);
args.Handle();
return;
}
@@ -224,6 +227,7 @@ namespace Content.Client.GameObjects.EntitySystems
}
CloseAllMenus();
args.Handle();
return;
}