GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
The key code enum which can be found in System.Windows.Forms.dll
Add class Keys
Key code enum which can be found in System.Windows.Forms.dll
Basic question: do the values match what you'd expect from HTML DOM key events across browsers/platforms? In other words compat with WinForms is less important, but compat with the DOM is essential. I see a bunch of values like Oem* and MediaPlayPause etc. that suggests former rather than latter.
These should be marked with [ScriptConstants] ... in other words, the enum doesn't exist in script, and generated script should simply have numeric values. Secondly, they don't belong in mscorlib which is relevant to all scripting environments (eg. nodejs). They likely belong in Script.Web.dll.
If you could address those, I think having the ability to reference constants rather than literal numbers would certainly be useful. Thanks.
Thanks for the advice Nikhilk, I'm new to this!
Moved Keys to suitable location and marked as ScriptConstants