pub struct KeyDefinition {
pub code: &'static str,
pub key: &'static str,
pub key_code: i32,
pub text: Option<&'static str>,
pub is_keypad: bool,
pub location: i32,
}Expand description
Key definition with all required properties for CDP.
Fields§
§code: &'static strThe key code (e.g., “KeyA”, “Enter”).
key: &'static strThe key value (e.g., “a”, “Enter”).
key_code: i32Windows virtual key code.
text: Option<&'static str>The text generated by this key (if any).
is_keypad: boolWhether this key is on the keypad.
location: i32The location of the key (0 = standard, 1 = left, 2 = right, 3 = numpad).
Trait Implementations§
Source§impl Clone for KeyDefinition
impl Clone for KeyDefinition
Source§fn clone(&self) -> KeyDefinition
fn clone(&self) -> KeyDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyDefinition
impl RefUnwindSafe for KeyDefinition
impl Send for KeyDefinition
impl Sync for KeyDefinition
impl Unpin for KeyDefinition
impl UnwindSafe for KeyDefinition
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