0 votes

I have a scene with just a RichTextLabel inside a Node2D. I'm trying to implement a scrolling textbox but it seems the entire window cannot grab the focus. This scene is inside a big project so I tried to reproduce the issue inside a new project with just that scene. On the new project it works and i couldn't reproduce the issue.

I noticed that if I make the RichTextLabel grab the focus programmaticaly I'm able to scroll but just with the keyboard.

I suspect it's a matter of project settings. Is there some settings that prevents controls from getting the focus?

Do you have any hint on how I could debug this?

in Engine by (52 points)

When you wrote, "it seems the entire window cannot grab the focus", are you referring to the window in which the game is being displayed?

1 Answer

+1 vote
Best answer

I figured it out. I was autoloading another scene with a canvas layer above the previous one and there was an hidden control on top of everything preventing below controls to take the focus.

by (52 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.