blob: 0789b459dea22ed53425470baa5e80d18e788248 [file] [log] [blame]
{{+bindTo:partials.standard_nacl_api}}
<h1>PP_InputEvent_Key Struct Reference</h1>
<div id="doxygen-ref">
{{- dummy div to appease doxygen -}}
<div>
<!-- Generated by Doxygen 1.7.6.1 -->
</div>
<!--header-->
<div class="contents">
<!-- doxytag: class="PP_InputEvent_Key" --><h2>
Data Fields</h2><table class="memberdecls">
<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___input_event___key.html#a13f50c267c45d439f009094515c75c10">modifier</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___input_event___key.html#ad7b017ab264c307ce846d5df8a8bf867">key_code</a></td></tr>
</table>
<hr /><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>The <code><a class="el" href="struct_p_p___input_event___key.html" title="The PP_InputEvent_Key struct represents a key up or key down event.">PP_InputEvent_Key</a></code> struct represents a key up or key down event. </p>
<p>Key up and key down events correspond to physical keys on the keyboard. The actual character that the user typed (if any) will be delivered in a "character" event.</p>
<p>If the user loses focus on the module while a key is down, a key up event might not occur. For example, if the module has focus and the user presses and holds the shift key, the module will see a "shift down" message. Then if the user clicks elsewhere on the web page, the module's focus will be lost and no more input events will be delivered.</p>
<p>If your module depends on receiving key up events, it should also handle "lost focus" as the equivalent of "all keys up." </p>
</div><hr /><h2>Field Documentation</h2>
<a class="anchor" id="ad7b017ab264c307ce846d5df8a8bf867"></a><!-- doxytag: member="PP_InputEvent_Key::key_code" ref="ad7b017ab264c307ce846d5df8a8bf867" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t <a class="el" href="struct_p_p___input_event___key.html#ad7b017ab264c307ce846d5df8a8bf867">PP_InputEvent_Key::key_code</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value reflects the DOM KeyboardEvent <code>keyCode</code> field. </p>
<p>Chrome populates this with the Windows-style Virtual Key code of the key. </p>
</div>
</div>
<a class="anchor" id="a13f50c267c45d439f009094515c75c10"></a><!-- doxytag: member="PP_InputEvent_Key::modifier" ref="a13f50c267c45d439f009094515c75c10" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t <a class="el" href="struct_p_p___input_event___key.html#a13f50c267c45d439f009094515c75c10">PP_InputEvent_Key::modifier</a></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>This value is a bit field combination of the EVENT_MODIFIER flags. </p>
</div>
</div>
<hr />The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="pp__input__event_8h.html">pp_input_event.h</a></li>
</ul>
</div><!-- contents -->
</div>
{{/partials.standard_nacl_api}}