Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpinBox does not receive "focus_entered" Event #43338

Open
ModProg opened this issue Nov 5, 2020 · 4 comments
Open

SpinBox does not receive "focus_entered" Event #43338

ModProg opened this issue Nov 5, 2020 · 4 comments

Comments

@ModProg
Copy link
Contributor

ModProg commented Nov 5, 2020

Godot version:
v3.2.3.stable.official

Issue description:
While trying to implement the Inspector UI in gdscript I was unable to listen for the SpinBox focus to set the focus effect to the whole line accordingly.

This is also the case for the ScrollBar.

Steps to reproduce:
Create a SpinBox and listen to the focus_entered Event

Minimal reproduction project:

FocusEvent.zip

@EricEzaM
Copy link
Contributor

EricEzaM commented Nov 8, 2020

This might be intentional? The control actually receiving the focus is the line edit, which you can access by spin_box.get_line_edit( ). Connect to the signals on that and it should work.

@ModProg
Copy link
Contributor Author

ModProg commented Nov 8, 2020 via email

@ghost
Copy link

ghost commented Jul 13, 2021

That's weird functionality. Going between a Checkbox and a Spinbox with keyboard Left, Right, Up, Down looks like is selecting some hidden in-between control. So what's actually selected is the Spinbox parent LineEdit control? That doesn't sound like a proper design. Because Tab and Shift+Tab selects it correctly. This intended functionality is confusing.

with Up Down
seems to select a ghost control when entering/leaving a checkbox
a

with Tab Shift+Tab
works properly but still selects a ghost control on Shift+Tab when leaving from or entering a checkbox
a

@cyberpuffin-digital
Copy link

This issue persists through 4.1.3, as mentioned in #73351.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants