Skip to content

Commit 837efd9

Browse files
committed
Move the "Focus main view" command to the global section of the keybindings menu
1 parent 96a6e65 commit 837efd9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/gui/controllers/options_menu_action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (self *OptionsMenuAction) getBindings(context types.Context) ([]*types.Bind
6161

6262
for _, binding := range bindings {
6363
if binding.Description != "" {
64-
if binding.ViewName == "" {
64+
if binding.ViewName == "" || binding.Tag == "global" {
6565
bindingsGlobal = append(bindingsGlobal, binding)
6666
} else if binding.ViewName == context.GetViewName() {
6767
if binding.Tag == "navigation" {

pkg/gui/controllers/switch_to_focused_main_view_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func (self *SwitchToFocusedMainViewController) GetKeybindings(opts types.Keybind
3232
Key: opts.GetKey(opts.Config.Universal.FocusMainView),
3333
Handler: self.handleFocusMainView,
3434
Description: self.c.Tr.FocusMainView,
35+
Tag: "global",
3536
},
3637
}
3738

0 commit comments

Comments
 (0)