Describe the bug
UnbindKeyCombo does not remove bindings properly when no handler is provided to the call.
I believe this might be happening because keyComboStatesArray is not updated here
To Reproduce
Steps to reproduce the behavior:
- Pick a shortcut
- Call
bindKeyCombo(shortcut, () => console.log('a'))
- Call
unbindKeyCombo(shortcut)
- Call
bindKeyCombo(shortcut, () => console.log('b'))
- Trigger shortcut
Expected behavior
Console logs only "b"