From 4a8559ab37f9116b7208d0a5a73dc783d1151c4f Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Mon, 19 Apr 2021 01:45:02 +0200 Subject: [PATCH] Fix context menu not marking input as handled correctly. --- .../GameObjects/EntitySystems/ContextMenuPresenter.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Client/GameObjects/EntitySystems/ContextMenuPresenter.cs b/Content.Client/GameObjects/EntitySystems/ContextMenuPresenter.cs index 4b342fd812..87279a23c6 100644 --- a/Content.Client/GameObjects/EntitySystems/ContextMenuPresenter.cs +++ b/Content.Client/GameObjects/EntitySystems/ContextMenuPresenter.cs @@ -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().DoExamine(entity); + args.Handle(); return; } @@ -224,6 +227,7 @@ namespace Content.Client.GameObjects.EntitySystems } CloseAllMenus(); + args.Handle(); return; }