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