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

CTRL-dragging nodes to create onready variables does not work if CTRL key is pressed before dragging #76358

Open
FarbrorMartin opened this issue Apr 23, 2023 · 3 comments

Comments

@FarbrorMartin
Copy link

Godot version

4.0-stable

System information

Windows 10, Forward+, Intel HD 620

Issue description

CTRL-dragging nodes into the code editor is a really useful shortcut for creating onready variables, which in turn leads to cleaner, more maintainable code.
However, when using the CTRL-drag to create an onready var for a node, the CTRL key needs to be pressed after starting the mouse drag. It does not work if the CTRL key is held before pressing the mouse button. If CTRL is held before the drag, nothing happens.
This behavior is not intuitive and not consistent with other applications.

Steps to reproduce

Hold CTRL and try to drag a node into the script window. The drag does not work.

Minimal reproduction project

N/A

@FarbrorMartin FarbrorMartin changed the title CTRL-dragging nodes to create onready variables does not work if control pressed before dragging CTRL-dragging nodes to create onready variables does not work if CTRL key is pressed before dragging Apr 23, 2023
@mrunion
Copy link

mrunion commented Oct 14, 2023

This happens on MacOS as well -- at least it doesn't on my Apple Silicon iMac. I will test my Apple Silicon MBP when I am at it again.

@HelloImKevo
Copy link

Same here, using Godot 4.2.1, on MacOS with Apple Silicon chip -- After initiating the drag, you can then press and hold the CMD key to get the expected auto-generated @onready var animation_player = $AnimationPlayer behavior

@BlommaertsEdwin
Copy link

Same behaviour here, but on Linux, Ubuntu 22.04.3 LTS, Godot Engine v4.2.1

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

5 participants