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
The second one is essentially a very stripped out version of keyboard shortcuts. It either calls a provided callback on a given keystroke, or clicks on the node. As simple as it is.
It is very opinionated. E.g. it does not recognize the difference between meta key and control key (the reason is that I wanted to have Ctrl + <key> for Windows and Cmd + <key> for Macs work the same).
It's also very simple. No queues, no namespaces, no stuff like collision control and so on, but its main benefit is that it is ~180 bytes. Works like charm in simple cases.
Hi!
I also use these two actions quite extensively.
The first one throws a browser alert when you close the tab. I put it on a root node that holds some important user's work (like a form tag).
The second one is essentially a very stripped out version of keyboard shortcuts. It either calls a provided callback on a given keystroke, or clicks on the node. As simple as it is.
It is very opinionated. E.g. it does not recognize the difference between meta key and control key (the reason is that I wanted to have
Ctrl + <key>
for Windows andCmd + <key>
for Macs work the same).It's also very simple. No queues, no namespaces, no stuff like collision control and so on, but its main benefit is that it is ~180 bytes. Works like charm in simple cases.
Can make a PR if you find it suitable.
The text was updated successfully, but these errors were encountered: