{{+bindTo:partials.standard_nacl_article}}
KeyboardInputEvent () | |
KeyboardInputEvent (const InputEvent &event) | |
KeyboardInputEvent (const InstanceHandle &instance, PP_InputEvent_Type type, PP_TimeTicks time_stamp, uint32_t modifiers, uint32_t key_code, const Var &character_text) | |
uint32_t | GetKeyCode () const |
Var | GetCharacterText () const |
Constructs an is_null() keyboard input event object.
pp::KeyboardInputEvent::KeyboardInputEvent | ( | const InputEvent & | event | ) | [explicit] |
pp::KeyboardInputEvent::KeyboardInputEvent | ( | const InstanceHandle & | instance, |
PP_InputEvent_Type | type, | ||
PP_TimeTicks | time_stamp, | ||
uint32_t | modifiers, | ||
uint32_t | key_code, | ||
const Var & | character_text | ||
) |
Constructs a keyboard input even from the given parameters.
[in] | instance | The instance for which this event occurred. |
[in] | type | A PP_InputEvent_Type identifying the type of input event. |
[in] | time_stamp | A PP_TimeTicks indicating the time when the event occurred. |
[in] | modifiers | A bit field combination of the PP_InputEvent_Modifier flags. |
[in] | key_code | This value reflects the DOM KeyboardEvent keyCode field. Chrome populates this with the Windows-style Virtual Key code of the key. |
[in] | character_text | This value represents the typed character as a UTF-8 string. |
Var pp::KeyboardInputEvent::GetCharacterText | ( | ) | const |
Returns the typed character for the given character event.
uint32_t pp::KeyboardInputEvent::GetKeyCode | ( | ) | const |
Returns the DOM keyCode field for the keyboard event.
Chrome populates this with the Windows-style Virtual Key code of the key.