From d4eeb4f5be03ef64f20eaa53b12db711dec23a36 Mon Sep 17 00:00:00 2001 From: Hironao OTSUBO Date: Wed, 6 Jul 2022 09:51:46 +0900 Subject: [PATCH] fix(key): unbound keys are not enabled --- key/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key/key.go b/key/key.go index c35f7f0..35fb016 100644 --- a/key/key.go +++ b/key/key.go @@ -106,7 +106,7 @@ func (b Binding) Help() Help { // keybindings won't be activated and won't show up in help. Keybindings are // enabled by default. func (b Binding) Enabled() bool { - return !b.disabled + return !b.disabled || b.keys == nil } // SetEnabled enables or disables the keybinding.