Rename check_caret_moved to be more consistent.

This commit is contained in:
Nolan Darilek 2019-09-26 07:52:51 -05:00
parent 24d3ea596b
commit 49d6eb8e59

View File

@ -150,7 +150,7 @@ func text_inserted(text):
var old_pos
func check_caret_moved():
func line_edit_input(event):
var pos = node.caret_position
if old_pos != null and old_pos != pos:
var text = node.text
@ -410,7 +410,7 @@ func gui_input(event):
elif node is ItemList:
return item_list_input(event)
elif node is LineEdit:
return check_caret_moved()
return line_edit_input(event)
elif node is Tree:
if event.is_action_pressed("ui_up") or event.is_action_pressed("ui_down") or event.is_action_pressed("ui_left") or event.is_action_pressed("ui_right"):
node.accept_event()