11 lines
224 B
GDScript
11 lines
224 B
GDScript
extends LineEdit
|
|
|
|
|
|
func _ready() -> void:
|
|
connect("text_changed", _text_to_upper)
|
|
|
|
|
|
func _text_to_upper(new_text: String):
|
|
var last_caret_column = caret_column
|
|
text = new_text.to_upper()
|
|
caret_column = last_caret_column
|