Add setting for when to show the focus state for mouse input#110895
Add setting for when to show the focus state for mouse input#110895Repiteo merged 1 commit intogodotengine:masterfrom
Conversation
0983c1e to
e26d662
Compare
|
I think some sort of setting like this is a very important addition from a UI/UX perspective after the changes in #110250 . As I understand it that PR changed things to make it easier to avoid showing unwanted focus rings around buttons when you're not using keyboard/controller navigation. But this misses the other big use of focus highlights of controls to show the user where keyboard entry or other secondary editing is currently directed (as in what text field you're currently editing, what color well is active when picking a color or other similar custom input controls). For these cases I think it's expected and needed for the control to get and show focus when clicked with a mouse, and unfortunate if this current functionality would break in 4.6. If I understand it correctly however, this PR would only add a possible exception for TextEdit and LineEdit explicitly, so it won't be possible to use for custom Controls where you want or may be relying on the old behavior? Perhaps this whole showing focus behavior could be handled better via something like the control focus modes instead, allowing to set the behavior per control with a default rather than project wide with project settings like this? |
Whether a custom |
I'm not sure I follow, I assume the engine would call |
You can still force an existing |
|
Thanks! |
Replaces the gui/common/always_show_focus_state from PR #110250 with a new setting that have 3 different options for when do draw the focus state for pointer events. This adds support for showing focus state for controls with keyboard input.
Screencast_20250924_171159.webm
Might be a good idea to have these settings for the editor itself too.