shim-keyboard-event-key
shim-keyboard-event-key copied to clipboard
Check if `self` is undefined
Hey Alexey, self might be undefined in some environments, which throws an error.
Your shim is currently used in @reecelucas/react-use-hotkeys, which, when used in Next.js, throws an error when self is undefined.
This PR should fix that.
Found the same problem using @reecelucas/react-use-hotkeys in gatsby
Please apply the PR
I came here because of @reecelucas/react-use-hotkeys in gatsby SSR, as well. This PR is a year and a half old. 🙏🏼
@shvaikalesh could we get this merged, please?