fix(term): prevent double keyboard input

Disconnects the "gui_input" signal as the _gui_input() override is
working as expected now. Having this signal connected was causing it to
be called twice for every input.
This commit is contained in:
Leroy Hopson 2024-02-25 22:06:58 +13:00
parent cf0beee0c1
commit 8cd11fdae6
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 7 additions and 2 deletions

View file

@ -646,8 +646,6 @@ void Terminal::initialize_input() {
selection_timer->set_wait_time(0.05);
selection_timer->connect("timeout", Callable(this, "_on_selection_held"));
add_child(selection_timer, false, INTERNAL_MODE_FRONT);
connect("gui_input", Callable(this, "_on_gui_input"));
}
void Terminal::_handle_key_input(Ref<InputEventKey> event) {