1 {{+bindTo:partials.standard_nacl_api}} 2 <h1>PP_InputEvent_Key Struct Reference</h1> 3 <div id="doxygen-ref"> 4 {{- dummy div to appease doxygen -}} 5 <div> 6 <!-- Generated by Doxygen 1.7.6.1 --> 7 8 9 </div> 10 <!--header--> 11 <div class="contents"> 12 <!-- doxytag: class="PP_InputEvent_Key" --><h2> 13 Data Fields</h2><table class="memberdecls"> 14 15 <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___input_event___key.html#a13f50c267c45d439f009094515c75c10">modifier</a></td></tr> 16 <tr><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_p_p___input_event___key.html#ad7b017ab264c307ce846d5df8a8bf867">key_code</a></td></tr> 17 </table> 18 <hr /><a name="details" id="details"></a><h2>Detailed Description</h2> 19 <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> 20 <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> 21 <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> 22 <p>If your module depends on receiving key up events, it should also handle "lost focus" as the equivalent of "all keys up." </p> 23 </div><hr /><h2>Field Documentation</h2> 24 <a class="anchor" id="ad7b017ab264c307ce846d5df8a8bf867"></a><!-- doxytag: member="PP_InputEvent_Key::key_code" ref="ad7b017ab264c307ce846d5df8a8bf867" args="" --> 25 <div class="memitem"> 26 <div class="memproto"> 27 <table class="memname"> 28 <tr> 29 <td class="memname">uint32_t <a class="el" href="struct_p_p___input_event___key.html#ad7b017ab264c307ce846d5df8a8bf867">PP_InputEvent_Key::key_code</a></td> 30 </tr> 31 </table> 32 </div> 33 <div class="memdoc"> 34 <p>This value reflects the DOM KeyboardEvent <code>keyCode</code> field. </p> 35 <p>Chrome populates this with the Windows-style Virtual Key code of the key. </p> 36 </div> 37 </div> 38 <a class="anchor" id="a13f50c267c45d439f009094515c75c10"></a><!-- doxytag: member="PP_InputEvent_Key::modifier" ref="a13f50c267c45d439f009094515c75c10" args="" --> 39 <div class="memitem"> 40 <div class="memproto"> 41 <table class="memname"> 42 <tr> 43 <td class="memname">uint32_t <a class="el" href="struct_p_p___input_event___key.html#a13f50c267c45d439f009094515c75c10">PP_InputEvent_Key::modifier</a></td> 44 </tr> 45 </table> 46 </div> 47 <div class="memdoc"> 48 <p>This value is a bit field combination of the EVENT_MODIFIER flags. </p> 49 </div> 50 </div> 51 <hr />The documentation for this struct was generated from the following file:<ul> 52 <li><a class="el" href="pp__input__event_8h.html">pp_input_event.h</a></li> 53 </ul> 54 </div><!-- contents --> 55 </div> 56 {{/partials.standard_nacl_api}} 57