online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/chat/textedit.gd')
| -rw-r--r-- | ui/chat/textedit.gd | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/chat/textedit.gd b/ui/chat/textedit.gd deleted file mode 100644 index ae30778..0000000 --- a/ui/chat/textedit.gd +++ /dev/null @@ -1,18 +0,0 @@ -extends ExpandableTextEdit - -signal send - - -func _input(event: InputEvent) -> void: - if ( - event is InputEventKey - and OS.get_scancode_string(event.get_scancode_with_modifiers()) in ["Kp Enter", "Enter"] - and event.pressed - ): - get_tree().set_input_as_handled() - if has_focus(): - text = text.strip_edges() - if text: - emit_signal("send") - else: - grab_focus() |