Solved by using GameStateManager.Hello!
I have spent now several hours to fix my mode so that the generic shortcut keys (GenericCampaignPanelsGameKeyCategory) should not be working inside my gauntlet, but I don't find a way to do that (it did work well on 1.7.2).
This is how I set up gauntlet screen:
protected override void OnInitialize()
{
base.OnInitialize();
HotKeyManager.AddAuxiliaryCategory((GameKeyContext)new BankHotkeyCategory());
_dataSource = new BankViewModel();
_gauntletLayer = new GauntletLayer(1, "GauntletLayer")
{
IsFocusLayer = true,
};
_gauntletLayer.LoadMovie("BankScreen", _dataSource);
_gauntletLayer.InputRestrictions.SetInputRestrictions(true, InputUsageMask.All);
LoadingWindow.EnableGlobalLoadingWindow();
_gauntletLayer.Input.RegisterHotKeyCategory(HotKeyManager.GetCategory("BankHotkeyCategory"));
AddLayer(_gauntletLayer);
}
Thanks for any help or pointing me to any documentation.
Game.Current.GameStateManager.RegisterActiveStateDisableRequest((object)this);
and
protected override void OnFinalize()
{
base.OnFinalize();
Game.Current.GameStateManager.UnregisterActiveStateDisableRequest((object)this);
RemoveLayer((ScreenLayer)this._gauntletLayer);
_gauntletLayer = (GauntletLayer)null;
_dataSource = (BankViewModel)null;
}