Closed khiga8 closed 3 years ago
Currently @github/hotkey will always return the last registered element when multiple elements are registered with the same hotkey. (See corresponding test)
@github/hotkey
This PR changes this behavior for scoped hotkeys which were introduced in https://github.com/github/hotkey/pull/49.
When the same hotkey is registered to multiple scoped elements, we can trigger the specific element that matches the criteria.
Currently
@github/hotkey
will always return the last registered element when multiple elements are registered with the same hotkey. (See corresponding test)This PR changes this behavior for scoped hotkeys which were introduced in https://github.com/github/hotkey/pull/49.
When the same hotkey is registered to multiple scoped elements, we can trigger the specific element that matches the criteria.