mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-25 13:25:56 +00:00
Rename check_caret_moved
to be more consistent.
This commit is contained in:
parent
24d3ea596b
commit
49d6eb8e59
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user