mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55: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
|
var old_pos
|
||||||
|
|
||||||
func check_caret_moved():
|
func line_edit_input(event):
|
||||||
var pos = node.caret_position
|
var pos = node.caret_position
|
||||||
if old_pos != null and old_pos != pos:
|
if old_pos != null and old_pos != pos:
|
||||||
var text = node.text
|
var text = node.text
|
||||||
|
@ -410,7 +410,7 @@ func gui_input(event):
|
||||||
elif node is ItemList:
|
elif node is ItemList:
|
||||||
return item_list_input(event)
|
return item_list_input(event)
|
||||||
elif node is LineEdit:
|
elif node is LineEdit:
|
||||||
return check_caret_moved()
|
return line_edit_input(event)
|
||||||
elif node is Tree:
|
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"):
|
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()
|
node.accept_event()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user