diff options
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index e5df56c42..3ce94c631 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -765,7 +765,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { ViewName: "commits", Contexts: []string{BRANCH_COMMITS_CONTEXT_KEY}, Key: gui.getKey("universal.goInto"), - Handler: gui.wrappedHandler(gui.handleSwitchToCommitFilesPanel), + Handler: gui.wrappedHandler(gui.handleViewCommitFiles), Description: gui.Tr.SLocalize("viewCommitFiles"), }, { @@ -800,6 +800,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { { ViewName: "commits", Contexts: []string{REFLOG_COMMITS_CONTEXT_KEY}, + Key: gui.getKey("universal.goInto"), + Handler: gui.wrappedHandler(gui.handleViewReflogCommitFiles), + Description: gui.Tr.SLocalize("viewCommitFiles"), + }, + { + ViewName: "commits", + Contexts: []string{REFLOG_COMMITS_CONTEXT_KEY}, Key: gui.getKey("universal.select"), Handler: gui.handleCheckoutReflogCommit, Description: gui.Tr.SLocalize("checkoutCommit"), @@ -867,12 +874,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "commitFiles", - Key: gui.getKey("universal.return"), - Handler: gui.handleSwitchToCommitsPanel, - Description: gui.Tr.SLocalize("goBack"), - }, - { - ViewName: "commitFiles", Key: gui.getKey("commitFiles.checkoutCommitFile"), Handler: gui.handleCheckoutCommitFile, Description: gui.Tr.SLocalize("checkoutCommitFile"), |