From 34b24344d40416ce96bd28202a8420c9e53f91f1 Mon Sep 17 00:00:00 2001 From: bleeptrack Date: Tue, 15 Sep 2020 11:30:40 +0200 Subject: [PATCH] Fix focus grab for commit messages --- terminal.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminal.gd b/terminal.gd index f66948d..551bee3 100644 --- a/terminal.gd +++ b/terminal.gd @@ -10,6 +10,7 @@ onready var output = $Control/Output onready var repo = $"../Repositories/ActiveRepository" onready var command_dropdown = $Control/InputLine/CommandDropdown onready var main = get_parent() +onready var text_editor = $"../TextEditor" var premade_commands = [ 'git commit --allow-empty -m "empty"', @@ -27,7 +28,7 @@ func _ready(): command_dropdown.theme.default_font = load("res://fonts/default.tres") func _input(event): - if event is InputEventKey: + if event is InputEventKey and not text_editor.visible: input.grab_focus() if history.size() > 0: if event.is_action_pressed("ui_up"):