{{+bindTo:partials.standard_nacl_article}}

pp::KeyboardInputEvent Class Reference

{{- dummy div to appease doxygen -}}
Inheritance diagram for pp::KeyboardInputEvent:

List of all members.

Public Member Functions

 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

Constructor & Destructor Documentation

Constructs an is_null() keyboard input event object.

Constructs a keyboard input event object from the provided generic input event.

If the given event is itself is_null() or is not a keyboard input event, the keybaord object will be is_null().

Parameters:
[in]eventA generic input event.
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.

Parameters:
[in]instanceThe instance for which this event occurred.
[in]typeA PP_InputEvent_Type identifying the type of input event.
[in]time_stampA PP_TimeTicks indicating the time when the event occurred.
[in]modifiersA bit field combination of the PP_InputEvent_Modifier flags.
[in]key_codeThis value reflects the DOM KeyboardEvent keyCode field. Chrome populates this with the Windows-style Virtual Key code of the key.
[in]character_textThis value represents the typed character as a UTF-8 string.

Member Function Documentation

Returns the typed character for the given character event.

Returns:
A string var representing a single typed character for character input events. For non-character input events the return value will be an undefined var.

Returns the DOM keyCode field for the keyboard event.

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


The documentation for this class was generated from the following file:
{{/partials.standard_nacl_article}}