Make clicking line edit not count as a mouse click?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Chevi

I have a player that moves where the mouse is clicked (code below) but when I click a line edit it registers it as a click and the player moves there, how can I fix this?

code:

	if Input.is_action_just_pressed("MoveTo"):
        global_position = get_global_mouse_position()
:bust_in_silhouette: Reply From: Amateur.game.dev.

Change it so that the player moves on a right click instead of a left click.