1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

refactor credential handling

This commit is contained in:
Jesse Duffield
2022-02-23 19:44:48 +11:00
parent d0805616e4
commit 46e9946854
16 changed files with 118 additions and 112 deletions

View File

@ -430,18 +430,6 @@ func (self *Gui) GetInitialKeybindings() ([]*types.Binding, []*gocui.ViewMouseBi
Handler: self.handleCopySelectedSideContextItemToClipboard,
Description: self.c.Tr.LcCopyCommitShaToClipboard,
},
{
ViewName: "credentials",
Key: opts.GetKey(opts.Config.Universal.Confirm),
Modifier: gocui.ModNone,
Handler: self.handleSubmitCredential,
},
{
ViewName: "credentials",
Key: opts.GetKey(opts.Config.Universal.Return),
Modifier: gocui.ModNone,
Handler: self.handleCloseCredentialsView,
},
{
ViewName: "menu",
Key: opts.GetKey(opts.Config.Universal.Return),