'Set Input Game Only' cancels out the setting of 'Set Input Game and UI'?

Dear reader,

I have an inventory system, where the player presses the ‘I’ key to open the inventory widget and set the input mode to Game and UI (shown in picture 1).

I also have a shop (just an actor) and when I enter the shop, pressing the ‘N’ key, it opens the conversation widget to talk to the shopkeeper. But when the exit button is pressed, to leave the shop, it removes the widget and goes back to the character’s camera, also setting the input mode to Game Only (shown in picture 2).

Opening, using and closing the inventory works fine at the beginning of play. But if I have interacted with the shop, then try to open the inventory, the widget pops up but the input mode doesn’t change to Game and UI, it just stays and Game Only - therefore the player cannot use the inventory.

It’s like it ignores the nodes from ‘Add to Viewport’ onwards and I have no idea why.

Any help or suggestions would be appreciated, thanks.

I have just checked to see if it is ignoring the nodes onward from the ‘Add to Viewport’ by placing a print string. But I found it doesn’t ignore them, it still prints the string every time.