Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

keyCode property

Sets or retrieves the Unicode key code associated with the key that caused the event.


HRESULT value = object.put_keyCode( v);HRESULT value = object.get_keyCode(* p);

Property values

Type: long

the Unicode key code.


The property is used with the HTMLFrameSiteEvents::onkeydown, HTMLFrameSiteEvents::onkeyup, and HTMLFrameSiteEvents::onkeypress events.

The property's value is 0 if no key caused the event.



Community Additions

© 2015 Microsoft