From 09207e7e3d6bf80826e0f1164bd3336bc55c6ea1 Mon Sep 17 00:00:00 2001 From: eeeXun Date: Sat, 1 Jul 2023 13:01:46 +0800 Subject: [PATCH] refactor(ui): KeyEsc trigger showLangPopout --- ui.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui.go b/ui.go index 08e7343..e87d6e9 100644 --- a/ui.go +++ b/ui.go @@ -489,8 +489,7 @@ func appHandler(event *tcell.EventKey) *tcell.EventKey { func translateWindowHandler(event *tcell.EventKey) *tcell.EventKey { if event.Key() == tcell.KeyEsc { - mainPage.ShowPage("langPopOut") - app.SetFocus(langCycle.GetCurrentUI()) + showLangPopout() return nil }