mirror of
https://github.com/Maks1mS/bubbles.git
synced 2025-10-09 14:04:45 +03:00
fix(key): unbound keys are not enabled
This commit is contained in:
committed by
Christian Rocha
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.
|
||||
|
Reference in New Issue
Block a user