mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-04 20:24:23 +02:00
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:
parent
cf0beee0c1
commit
8cd11fdae6
2 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue