a game about throwing hammers made for the github game off
Diffstat (limited to 'ui/popup.gd')
| -rw-r--r-- | ui/popup.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/popup.gd b/ui/popup.gd index 4fc583f..5620f27 100644 --- a/ui/popup.gd +++ b/ui/popup.gd @@ -14,8 +14,8 @@ func open() -> void: else: focus.grab_focus() -func _unhandled_key_input(event: InputEvent) -> void: - if visible and event is InputEventKey and event.keycode == KEY_ESCAPE: +func _unhandled_input(event: InputEvent) -> void: + if visible and event.is_action("ui_cancel"): accept_event() exit() |