You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A single key sequence could be handled by "in focus" multiple components however in most use cases it does not make much sense for a parent to handle the same hotkey if a child has already dealt with it. For this reason hotkey events will not propagate beyond the component which handles them by default.
So how can we override this default?
The text was updated successfully, but these errors were encountered:
@Aryk I had the same issue here. However, it is impossible to override this. react-hotkeys internally avoid to call the handler on a parent component if a child component has the same handler(key sequence) defined.
It's just a simple wrap of mousetrap, and follows the rule of event propagation of mousetrap. It works fine in my project so far. Maybe you could take a look.
So how can we override this default?
The text was updated successfully, but these errors were encountered: