CogCommonUI: Add a new plugin to fix CommonUI blocking cog shortcuts (F1, F2, ...)

Reference this plugin where other cog modules are added.
This plugin uses a CommonUI ActionRouter to let Cog receives the shortcuts it needs.
If you already have an Action Router, you can call FCogImguiInputHelper::IsTopPriorityKey to know if the key event to should handled or not.
This commit is contained in:
Arnaud Jamin
2025-01-25 21:50:19 -05:00
parent c345235e96
commit c9918da4f1
16 changed files with 293 additions and 128 deletions
@@ -54,7 +54,7 @@ void FCogEngineWindow_CommandBindings::RenderContent()
"Disable the existing Unreal command shortcuts mapped to same shortcuts Cog is using. Typically, if the F1 shortcut is used to toggle Inputs, the Unreal wireframe command will get disabled."
))
{
GetOwner()->DisableConflictingCommands();
GetOwner()->OnShortcutsDefined();
}
for (FKeyBind& KeyBind : PlayerInput->DebugExecBindings)