pub enum KeyEventWui {
Keydown {
common: KeyEventWuiCommon,
},
Char {
common: KeyEventWuiCommon,
character: u16,
unmodified_character: u16,
},
Keyup {
common: KeyEventWuiCommon,
},
}Expand description
Represents a single Keyboard event. Is a thin wrapper around the actual key information needed by CEF. Do not @me that this is complicated and odd. I know. Be my guest when you want to make a PR that streamlines this approach. It is generally hard to maintain something that uses this interface because of all the moving parts. I tried to reduce complexity where possible.
Hold Key event information. Based on https://cef-builds.spotifycdn.com/docs/111.2/structcef__key__event__t.html
Do yourself a favor and read through these docs
NOTE: What about RAWKEYDOWN? As far as I can tell it serves no purpose in synthetic events, which is what I am generating here anyways so they can be ignored. If you need the event, it can easiliy be added. Make a PR
Variants§
Keydown
Fields
§
common: KeyEventWuiCommonChar
Fields
§
common: KeyEventWuiCommonKeyup
Fields
§
common: KeyEventWuiCommonTrait Implementations§
Source§impl Debug for KeyEventWui
impl Debug for KeyEventWui
Source§impl From<&KeyEventWui> for KeyEvent
impl From<&KeyEventWui> for KeyEvent
Source§fn from(value: &KeyEventWui) -> Self
fn from(value: &KeyEventWui) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KeyEventWui
impl RefUnwindSafe for KeyEventWui
impl Send for KeyEventWui
impl Sync for KeyEventWui
impl Unpin for KeyEventWui
impl UnwindSafe for KeyEventWui
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more