#[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: c_int,
pub native_key_code: c_int,
pub is_system_key: c_int,
pub character: char16_t,
pub unmodified_character: char16_t,
pub focus_on_editable_field: c_int,
}Expand description
Structure representing keyboard event information.
Fields§
§size: usizeSize of this structure.
type_: cef_key_event_type_tThe type of keyboard event.
modifiers: u32Bit flags describing any pressed modifier keys. See cef_event_flags_t for values.
windows_key_code: c_intThe 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: c_intThe actual key code genenerated by the platform.
is_system_key: c_intIndicates 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: char16_tThe character generated by the keystroke.
unmodified_character: char16_tSame as |character| but unmodified by any concurrently-held modifiers (except shift). This is useful for working out shortcut keys.
focus_on_editable_field: c_intTrue if the focus is currently on an editable field on the page. This is useful for determining if standard key events should be intercepted.
Trait Implementations§
Source§impl Clone for _cef_key_event_t
impl Clone for _cef_key_event_t
Source§fn clone(&self) -> _cef_key_event_t
fn clone(&self) -> _cef_key_event_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more