# Set Input Mode "Game & UI" with Common UI plugin

**URL:** <https://forums.unrealengine.com/t/set-input-mode-game-ui-with-common-ui-plugin/747936>\
**Category:** UI\
**Tags:** Staff-Pick-UE, unreal-engine, question, Blueprint\
**Created:** [January 12, 2023, 4:51pm UTC](https://forums.unrealengine.com/t/set-input-mode-game-ui-with-common-ui-plugin/747936 "2023-01-12T16:51:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![illYay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@illYay](https://forums.unrealengine.com/u/illYay)\
**Post date:** [January 16, 2023, 7:54am UTC](https://forums.unrealengine.com/t/set-input-mode-game-ui-with-common-ui-plugin/747936/3 "2023-01-16T07:54:52Z")

</div>

I found that in the C++, there’s also something to do with UIInputConfigs in common UI.

This code thinks the UI is handling all keyboard events.  
[https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/CommonGameViewportClient.cpp#L65](https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/CommonGameViewportClient.cpp#L65)

Ultimately this is because the CommonUIActionRouterBase returns BlockGameInput here.  
[https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/Input/CommonUIActionRouterBase.cpp#L403](https://github.com/EpicGames/UnrealEngine/blob/cdaec5b33ea5d332e51eee4e4866495c90442122/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/Input/CommonUIActionRouterBase.cpp#L403)

The UIInputConfig is somehow set to Menu instead of All. I saw that me calling Set game input mode to UI and Game doesn’t affect this. I’d assume this is a bug.

---

_[View the full topic](https://forums.unrealengine.com/t/set-input-mode-game-ui-with-common-ui-plugin/747936)._
