Pepper_31_C_interfaces
Public Attributes | List of all members
PP_InputEvent_Key Struct Reference

#include <pp_input_event.h>

Collaboration diagram for PP_InputEvent_Key:
Collaboration graph

Public Attributes

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

Definition at line 43 of file pp_input_event.h.

Member Data Documentation

uint32_t PP_InputEvent_Key::key_code

This value reflects the DOM KeyboardEvent keyCode field. Chrome populates this with the Windows-style Virtual Key code of the key.

Definition at line 50 of file pp_input_event.h.

uint32_t PP_InputEvent_Key::modifier

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

Definition at line 45 of file pp_input_event.h.


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