Native Client

PP_InputEvent_Key Struct Reference

The PP_InputEvent_Key struct represents a key up or key down event. More...


Detailed Description

The PP_InputEvent_Key struct represents a key up or key down event.

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.

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.

If your module depends on receiving key up events, it should also handle "lost focus" as the equivalent of "all keys up."

Data Fields List

uint32_t modifier
uint32_t key_code

Data Fields Details

This value reflects the DOM KeyboardEvent keyCode field.

Chrome populates this with the Windows-style Virtual Key code of the key.

This value is a bit field combination of the EVENT_MODIFIER flags.


The documentation for this struct was generated from the following file:

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.