From 8b3c207b0ccb868ae148110cdd8ab431b2bdb1b5 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Tue, 13 Jul 2021 08:38:50 +0700 Subject: [PATCH] Set new terminal shortcut input as handled Otherwise the input will also be handled by the newly spawned terminal and ^T will be printed to the screen. --- addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd b/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd index a44eeda..50eaefd 100644 --- a/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd +++ b/addons/godot_xterm/editor_plugins/terminal/terminal_panel.gd @@ -142,6 +142,7 @@ func _input(event: InputEvent) -> void: if _settings.new_terminal_shortcut and _settings.new_terminal_shortcut.shortcut: if event.shortcut_match(_settings.new_terminal_shortcut.shortcut): + get_tree().set_input_as_handled() editor_plugin.make_bottom_panel_item_visible(self) _on_AddButton_pressed()