Control's GrabFocus() does not fire FocusEntered() signal. #12395
Closed
yosimba2000
started this conversation in
GUI
Replies: 1 comment
-
*edit Sorry, I'm wrong. GrabFocus does execute FocusEntered signal. My issue was the button was inside a Container, and I guess visually the button scale doesn't update correctly in a Container. It's even grayed out as an option in the GUI. Changing button size using Minimum Size instead of Scale worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Godot 4.4 .Net Stable.
I'm making a console game, so the first button in any menu needs to grab focus.
In Ready(), I add a scale change to all buttons in their FocusEntered event so it's visible that the button is Focused.
I manually grab focus when a menu is opened using GrabFocus(). Focus is grabbed, but it doesn't execute FocusEntered signal, meaning there is no visual feedback to tell the player which button is focused. Only after the player changes focus to another control by input does FocusEntered execute.
GrabFocus() should execute FocusEntered signals.
Beta Was this translation helpful? Give feedback.
All reactions