Data Fields

uint32_t modifier
uint32_t key_code

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."


Field Documentation

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:
This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.