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.
This commit is contained in:
Leroy Hopson 2021-07-13 08:38:50 +07:00
parent bbe6cb273b
commit 8b3c207b0c
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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()