cef_key_event_t

Type Alias cef_key_event_t 

Source
pub type cef_key_event_t = _cef_key_event_t;
Expand description

Structure representing keyboard event information.

Aliased Type§

#[repr(C)]
pub struct cef_key_event_t { pub size: usize, pub type_: cef_key_event_type_t, pub modifiers: u32, pub windows_key_code: i32, pub native_key_code: i32, pub is_system_key: i32, pub character: u16, pub unmodified_character: u16, pub focus_on_editable_field: i32, }

Fields§

§size: usize

Size of this structure.

§type_: cef_key_event_type_t

The type of keyboard event.

§modifiers: u32

Bit flags describing any pressed modifier keys. See cef_event_flags_t for values.

§windows_key_code: i32

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.

§native_key_code: i32

The actual key code genenerated by the platform.

§is_system_key: i32

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.

§character: u16

The character generated by the keystroke.

§unmodified_character: u16

Same as |character| but unmodified by any concurrently-held modifiers (except shift). This is useful for working out shortcut keys.

§focus_on_editable_field: i32

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.