Fix context menu not marking input as handled correctly.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user