Closed ayrton closed 8 years ago
Just wondering, why not depend directly on https://github.com/facebook/react/blob/master/src/renderers/dom/client/utils/getEventKey.js? Looks like easiest way to keep consistency. And things like greenkeeper.io could be used to check compatibility with upcoming React versions.
@princed is on my list of things to figure out, most likely I will do this tomorrow, together with what's left on the roadmap
FYI @princed this tweet pretty much sums up why this is not a good idea.
Of course it could be moved, there's greenkeeper.io for that in my opinion :)
My major concern is that I'm not 100% sure how this would work when publishing this library, considering react is a peer dependency and react is stubbed out, so that the user can include whatever react version they prefer.
If you have any ideas, feel free to open a PR after I've merged in this one, happy to do what's best for the project.
This is an ongoing effort to have the exact same behaviour as react keyboard events.
Thanks to @princed for pointing this out.