mirror of
https://github.com/eeeXun/GTT.git
synced 2025-05-16 15:50:52 -07:00
refactor(ui): KeyEsc trigger showLangPopout
This commit is contained in:
parent
04efa4e649
commit
09207e7e3d
3
ui.go
3
ui.go
@ -489,8 +489,7 @@ func appHandler(event *tcell.EventKey) *tcell.EventKey {
|
|||||||
|
|
||||||
func translateWindowHandler(event *tcell.EventKey) *tcell.EventKey {
|
func translateWindowHandler(event *tcell.EventKey) *tcell.EventKey {
|
||||||
if event.Key() == tcell.KeyEsc {
|
if event.Key() == tcell.KeyEsc {
|
||||||
mainPage.ShowPage("langPopOut")
|
showLangPopout()
|
||||||
app.SetFocus(langCycle.GetCurrentUI())
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user