mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 09:40:25 +01:00
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:
parent
bbe6cb273b
commit
8b3c207b0c
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ func _input(event: InputEvent) -> void:
|
||||||
|
|
||||||
if _settings.new_terminal_shortcut and _settings.new_terminal_shortcut.shortcut:
|
if _settings.new_terminal_shortcut and _settings.new_terminal_shortcut.shortcut:
|
||||||
if event.shortcut_match(_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)
|
editor_plugin.make_bottom_panel_item_visible(self)
|
||||||
_on_AddButton_pressed()
|
_on_AddButton_pressed()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue