summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-24 13:29:48 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitef7c4c9ca93ec15db4886d8d6f78c85a1db7edef (patch)
tree57c2cff341b03d12b69ac57226376563e9089f75 /pkg/gui/keybindings.go
parent952a4f3f2388da4ab88005b02f264aca0172afe7 (diff)
refactor custom commands
more custom command refactoring
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go6
1 files changed, 5 insertions, 1 deletions
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 {