How to disable the context menu from UI components?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

Click the right mouse button on the UI components:

  • LineEdit
  • TextEdit
  • Range

invokes the context menu. I need to turn it off. How to do it?

:bust_in_silhouette: Reply From: Nefcairon

Does no one know the answer?

You may be able to hide the internal PopupMenu that’s spawned after right-clicking, but I don’t recommend disabling the context menu to avoid harming accessibility. It’s there for a reason after all :slight_smile:
You can use the Remote scene tree functionality after starting the project to view internal nodes spawned by GUI elements as they’re created.

PS: Please do not bump questions by posting answers that don’t effectively answer the question. Instead, use the comment functionality or post a new question.

Calinou | 2021-09-18 00:58