From ef7c4c9ca93ec15db4886d8d6f78c85a1db7edef Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Thu, 24 Feb 2022 13:29:48 +1100 Subject: refactor custom commands more custom command refactoring --- pkg/gui/keybindings.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkg/gui/keybindings.go') diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 7401f3416..7c5e0be25 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1116,7 +1116,11 @@ func (gui *Gui) resetKeybindings() error { bindings, mouseBindings := gui.GetInitialKeybindings() // prepending because we want to give our custom keybindings precedence over default keybindings - bindings = append(gui.GetCustomCommandKeybindings(), bindings...) + customBindings, err := gui.CustomCommandsClient.GetCustomCommandKeybindings() + if err != nil { + log.Fatal(err) + } + bindings = append(customBindings, bindings...) for _, binding := range bindings { if err := gui.SetKeybinding(binding); err != nil { -- cgit v1.2.3