From e310494d39d9efb0a0282d0cc486c8d501789521 Mon Sep 17 00:00:00 2001 From: Axel Meyer Date: Sun, 14 Jun 2026 02:36:40 +0200 Subject: [PATCH] fix(vagrant): ESC closes open panel before quitting to launcher Previously ESC unconditionally switched to the launcher, leaving no way to dismiss an open inspect-detail (or any panel-widget opened via notify.post without a toggle key). Now ESC closes the active panel first; only when no panel is open does it quit to the launcher. --- init.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 10d4865..beb2689 100644 --- a/init.lua +++ b/init.lua @@ -552,8 +552,13 @@ end function M.update(ctx, dt) if input.was_action_pressed("quit_to_launcher") then - engine.switch_module("lib-management.launcher") - return + -- ESC: close any open panel first; only quit to launcher when no panel is open. + if panel.is_open() then + panel.close() + else + engine.switch_module("lib-management.launcher") + return + end end -- Inventory panel input handling