Deactivate EventSystem If not used

hello!

i have my project that are using Event System custom input module, inherited from baseinput.

all works fine, but i want to stop the inputer from there when there is no selectable activated on the game, if every panel with selectable are not interactable i want to stop the eventsystem to read the input.

there is a way to do it?

ok well… Eventsystem is always focused, but i fixed it by just checking if there is any selected object