Disable popup menu in LineEdit?

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

When you click with the right mouse button in the line edit a wild menu appears, is there a way to disable it?

:bust_in_silhouette: Reply From: ingo_nikot

i never noticed this, if found this work around:

self.get_node("your_line_edit").get_menu().set_opacity(0)

as far as i can tell you also cant click on the options if the opacity is zero.

It just makes it invisible, it still works. Well I guess I have to live with it.

mateusak | 2017-01-27 23:24

when i tested it did not work however i could have made an misstake.

ingo_nikot | 2017-02-04 12:57