diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-17 20:45:37 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | dc183c0d824c2f1da0140ba33b9b3bc6c0f756b8 (patch) | |
tree | 6cfb895cf90893f87566a2c756ed7b41ae23e5fa /pkg/gui/credentials_panel.go | |
parent | 08e039bea9c169d6ff53b2a10e042d30033bc6bc (diff) |
no need to set views on top anymore
Diffstat (limited to 'pkg/gui/credentials_panel.go')
-rw-r--r-- | pkg/gui/credentials_panel.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pkg/gui/credentials_panel.go b/pkg/gui/credentials_panel.go index d1eed5b25..a9dc11417 100644 --- a/pkg/gui/credentials_panel.go +++ b/pkg/gui/credentials_panel.go @@ -58,15 +58,11 @@ func (gui *Gui) handleCloseCredentialsView(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleCredentialsViewFocused() error { - if _, err := gui.g.SetViewOnTop("credentials"); err != nil { - return err - } - message := gui.Tr.TemplateLocalize( "CloseConfirm", Teml{ - "keyBindClose": "esc", - "keyBindConfirm": "enter", + "keyBindClose": gui.getKeyDisplay("universal.return"), + "keyBindConfirm": gui.getKeyDisplay("universal.confirm"), }, ) gui.renderString("options", message) |