You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
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
The text was updated successfully, but these errors were encountered: