// sub-component.
// there are more than two keys in the sub-component.
useHotkeys({ scope: "child", keys: "s,c", autoMerge: true }, (e) => {
// after keys is enter & hotkeys.trigger
//e is undefined
});
finally, the p,s,c keys is activated;
why data.method has not arguments?
How can I know the current key, after hotkeys.trigger. I don't want to single maintain triggered keys.
useHotkeys is a hooks, to activate hotkeys-js.
finally, the
p,s,c
keys is activated;why
data.method
has not arguments?How can I know the current key, after hotkeys.trigger. I don't want to single maintain triggered keys.
maybe it can have parameters🤔🤔
Look forward to your kind advice.