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

Add a setting to enable or disable dragging and dropping text with the mouse in LineEdit and RichTextLabel #7297

Closed
danny88881 opened this issue Jul 16, 2023 · 2 comments
Milestone

Comments

@danny88881
Copy link

danny88881 commented Jul 16, 2023

Describe the project you are working on

I am working on a game that makes heavy use of TextEdit, LineEdit, and RichTextLabel.

Describe the problem or limitation you are having in your project

While I am able to disable the dragging and dropping feature on TextEdit, both LineEdit and RichTextLabel still have this feature enabled creating an inconsistency.

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

The feature would be an option to disable this behavior on LineEdit and RichTextLabel just like the drag_and_drop_selection_enabled property of TextEdit.

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

Extend the drag-and-drop option of TextEdit to LineEdit and RichTextLabel

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

Not that I am aware of

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

The feature already exists for the TextEdit node.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 16, 2023

If you don't need other mouse features, you can set mouse_filter to IGNORE.

@akien-mga
Copy link
Member

Implemented by godotengine/godot#79563.

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

3 participants