Code: Select all
public override void Update()
{
base.Update();
if (!DaggerfallUI.Instance.HotkeySequenceProcessed)
{
// Toggle window closed with same hotkey used to open it
if (InputManager.Instance.GetKeyUp(toggleClosedBinding))
CloseWindow();
}
// Close window immediately if inventory suppressed
if (suppressInventory)
{
CloseWindow();
if (!string.IsNullOrEmpty(suppressInventoryMessage))
DaggerfallUI.MessageBox(suppressInventoryMessage);
return;
}
}
In my test environment, i was able to get it working by changing the DaggerfallInventoryWindow.Update method as follows:
Code: Select all
public override void Update()
{
base.Update();
if (!DaggerfallUI.Instance.HotkeySequenceProcessed)
{
// Toggle window closed with same hotkey used to open it
if (InputManager.Instance.GetKeyUp(toggleClosedBinding))
if (uiManager.TopWindow.FocusControl != null)
{
if (!uiManager.TopWindow.FocusControl.OverridesHotkeySequences)
CloseWindow();
} else
{
CloseWindow();
}
}
// Close window immediately if inventory suppressed
if (suppressInventory)
{
CloseWindow();
if (!string.IsNullOrEmpty(suppressInventoryMessage))
DaggerfallUI.MessageBox(suppressInventoryMessage);
return;
}
}
thank you in advance for any assistance.
a