From 0e2cacabcec0de107b114a850f1aea517ae23711 Mon Sep 17 00:00:00 2001 From: blinry Date: Tue, 10 Nov 2020 22:42:43 +0100 Subject: [PATCH] Make terminal not react to hotkeys, unless focused Closes #8. --- scenes/terminal.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scenes/terminal.gd b/scenes/terminal.gd index 6671aec..99939af 100644 --- a/scenes/terminal.gd +++ b/scenes/terminal.gd @@ -32,6 +32,9 @@ func _ready(): history_position = game.state["history"].size() func _input(event): + if not input.has_focus(): + return + if game.state["history"].size() > 0: if event.is_action_pressed("ui_up"): if history_position > 0: