fix(key): unbound keys are not enabled

This commit is contained in:
Hironao OTSUBO 2022-07-06 09:51:46 +09:00 committed by Christian Rocha
parent b74f696cc8
commit d4eeb4f5be

View File

@ -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.