Hi,
I'm working on a map editor for my game. I have small a UI that lets me select the brush size and strength for terrain sculpting using two sliders.
After I use one of the sliders to change a value, the focus remains on that slider. When I continue to edit the map, and press any key corresponding to 'ui_left' or 'ui_right' to move the camera, the last used slider changes value.
For now I have used an ugly hack. I created a dummy button node, set it to invisible and disabled, and any time there is an _unhandled_input in my map editor script, I call grab_focus() on that dummy button.
Is there a way to do this without using a dummy control node?