mirror of
https://github.com/Maks1mS/bubbles.git
synced 2024-12-23 22:32:59 +03:00
fix(key): unbound keys are not enabled
This commit is contained in:
parent
b74f696cc8
commit
d4eeb4f5be
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user