Skip to content

Implement pressing Escape to clear text selection in LineEdit and TextEdit #4766

Closed
@ZachIsAGardner

Description

@ZachIsAGardner

Describe the project you are working on

Just messing around in Godot 3.X and 4.0 alpha.

Describe the problem or limitation you are having in your project

I'm used to being able to press Escape to clear my current selection in a code editor.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Having a configurable shortcut for clearing the current selection would be helpful.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

This is something that could be added as it's own shortcut in the Script Text Editor category. Or it could be hooked into the existing ui_cancel shortcut. This would be similar to Evaluate Selection, it just wouldn't move the cursor around.

If this enhancement will not be used often, can it be worked around with a few lines of script?

I'm not sure.

Is there a reason why this should be core and not an add-on in the asset library?

I think most people would appreciate this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions