Page 1 of 1

[SOLVED] KeyEventArgs & EventArgs is not supported

Posted: Mon Feb 06, 2017 6:16 am
by Anupam
Hi,

KeyEventArgs & EventArgs is not supported.

Can somebody help me on this?.

Regards,
Anupam

Re: KeyEventArgs & EventArgs is not supported

Posted: Fri Apr 21, 2017 4:40 am
by Anupam
Hi All,

"KeyEventArgs.PlatformKeyCode" Property is currently not supported.

Also, In My CS.Code I need to implement "e.PlatformKeyCode == 189" where "e" is inherited from the KeyEventArgs Method.

Kindly Advise
Anupam

Re: KeyEventArgs & EventArgs is not supported

Posted: Fri Apr 21, 2017 11:30 am
by JS-Support @Userware
Hi,

We have just added support for "PlatformKeyCode" for you in the Beta 11.5, available at:
http://forums.cshtml5.com/viewtopic.php?f=6&t=8006

Please note that, as the name suggests, the value depends on the browser. For example, the dash ("-") is 187 on IE and Chrome, but 173 on Firefox. To determine your current browser, you can use Interop.ExecuteJavaScript to check the existance of the following JS variables: window.IE_VERSION, window.ANDROID_VERSION, and window.FIREFOX_VERSION. You can see where those variables are defined by opening the file "cshtml5.js" that is located in the "Libraries" subfolder of your Output folder.

Regards,
JS-Support