v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-16 07:40:44 -07:00

refactor(ui): KeyEsc trigger showLangPopout

This commit is contained in:
eeeXun 2023-07-01 13:01:46 +08:00
parent 04efa4e649
commit 09207e7e3d

3
ui.go
View File

@ -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
}