I already asked on the AnswerHUB but unfortunately nobody answered my question there. So I try getting an answer in the forums. I am on engine version 4.14.
I use keybinding for opening different user widgets (e.g. inventory, map). I plan to allow the player to change the bindings so he can use whatever key he likes. For opening the widget that is just fine because one can use the ActionInput event for this. I would like to close the widget with exactly the same key but you can not listen to the ActionInput event from a user widget so I have to hardcode the key for closing. That means if I choose ‘i’ for the inventory and the player changes this to ‘tab’, the inventory opens up on ‘tab’ and closes on ‘i’.
Is there any way to reference the keybindings from within an user widget?