Chromium Embedded Framework (CEF)  127.1.0+ga1ec504+chromium-127.0.6533.57
cef_key_event_t Struct Reference

Structure representing keyboard event information. More...

#include "include/internal/cef_types.h"

Inheritance diagram for cef_key_event_t:
CefKeyEvent

Public Attributes

cef_key_event_type_t type
 The type of keyboard event. More...
 
uint32_t modifiers
 Bit flags describing any pressed modifier keys. More...
 
int windows_key_code
 The Windows key code for the key event. More...
 
int native_key_code
 The actual key code genenerated by the platform. More...
 
int is_system_key
 Indicates whether the event is considered a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). More...
 
char16_t character
 The character generated by the keystroke. More...
 
char16_t unmodified_character
 Same as |character| but unmodified by any concurrently-held modifiers (except shift). More...
 
int focus_on_editable_field
 True if the focus is currently on an editable field on the page. More...
 

Detailed Description

Structure representing keyboard event information.

Member Data Documentation

◆ character

char16_t cef_key_event_t::character

The character generated by the keystroke.

◆ focus_on_editable_field

int cef_key_event_t::focus_on_editable_field

True if the focus is currently on an editable field on the page.

This is useful for determining if standard key events should be intercepted.

◆ is_system_key

int cef_key_event_t::is_system_key

Indicates whether the event is considered a "system key" event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).

This value will always be false on non-Windows platforms.

◆ modifiers

uint32_t cef_key_event_t::modifiers

Bit flags describing any pressed modifier keys.

See cef_event_flags_t for values.

◆ native_key_code

int cef_key_event_t::native_key_code

The actual key code genenerated by the platform.

◆ type

cef_key_event_type_t cef_key_event_t::type

The type of keyboard event.

◆ unmodified_character

char16_t cef_key_event_t::unmodified_character

Same as |character| but unmodified by any concurrently-held modifiers (except shift).

This is useful for working out shortcut keys.

◆ windows_key_code

int cef_key_event_t::windows_key_code

The Windows key code for the key event.

This value is used by the DOM specification. Sometimes it comes directly from the event (i.e. on Windows) and sometimes it's determined using a mapping function. See WebCore/platform/chromium/KeyboardCodes.h for the list of values.


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