pub struct KeyEventWuiCommon {
pub modifiers: Option<HashSet<EventFlagsWui>>,
pub windows_key_code: KeyCodeVBoard,
pub native_key_code: i32,
pub is_system_key: bool,
pub focus_on_editable_field: bool,
}Fields§
§modifiers: Option<HashSet<EventFlagsWui>>Currently held down modifier keys/flags
windows_key_code: KeyCodeVBoardThis is arguable the most important field. 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.
NOTE: There is a lot of history here with posix and older standard for keyboard inputs or/and the virtual keyboard codes. cef client test
E.g. On Linux and X11 backends this would be 0x41 for ‘A’ or ‘a’.
native_key_code: i32The actual key code generated by the platform. NOTE: This is platform specific and usually your IO system should report this code.
E.g. On Linux with X11 this would be 0x61 for “latin small leter A”
Can usually be found in /usr/include/X11/keysymdef.h
is_system_key: boolwindows only! 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.
focus_on_editable_field: boolTrue if the focus is currently on an editable field on the page. This is useful for determining if standard key events should be intercepted. NOTE: This is fully optional, when in doubt -> false
Trait Implementations§
Source§impl Clone for KeyEventWuiCommon
impl Clone for KeyEventWuiCommon
Source§fn clone(&self) -> KeyEventWuiCommon
fn clone(&self) -> KeyEventWuiCommon
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more