Skip to content

Delete key doesn't Delete Node when Visual Script Editor is open  #35834

Closed
@hsandt

Description

Godot version:
3.2

OS/device including version:
Linux Mint 19.2 Cinnamon

Issue description:
The Delete key does not Delete the selected node when focusing a node in the Scene Tree when the Visual Script Editor is open. This is due to Delete being mapped to Delete Selected (visual node) in the context of Visual Script Editor, and this context being considered active despite focusing the Scene Tree. Note that when pressing Delete however, the last focused Visual node is not deleted either; nothing happens instead.

If you remove the mapping of Delete in Visual Script Editor context (or remap Delete Selected to another key), Delete will work correctly on the Scene Tree.

Steps to reproduce:
With default mappings:

  1. Create a Visual Script and keep the Visual Script Editor open.
  2. Select a node in the scene tree (outside the Root)
  3. Press Delete

Result: nothing happens

Bonus: do the same, but after removing Delete Selected mapping in Visual Script Editor context.

Result: Godot prompts for node deletion as expected

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions