Method

CogViewhandle_key_event

Declaration [src]

void
cog_view_handle_key_event (
  CogView* self,
  const wpe_input_keyboard_event* event
)

Description [src]

Sends a keyboard event to the web view.

Platform implementations must call this method instead of directly using wpe_view_backend_dispatch_keyboard_event() in order to give the embedding application the chance to handle keyboard bindings. See cog_view_set_use_key_bindings() for more details.

Available since:0.20

Parameters

event const wpe_input_keyboard_event*
 

A key input event.

 The data is owned by the caller of the function.