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