pub enum AppKeyboardAction {
Type {
text: String,
},
Press {
key: String,
modifiers: Vec<AppKeyboardModifier>,
},
}Expand description
App-window keyboard action delivered to the focused native control.
This is app/window-level, not LxApp-level: it drives whatever control
currently holds first responder (a native NSTextField address bar, a
WebView input, etc.), matching AppMouse.
Variants§
Type
Type literal text; drives insertText: on the focused control.
Press
Press a named key (e.g. return, tab, escape) with modifiers.
Implementations§
Trait Implementations§
Source§impl Clone for AppKeyboardAction
impl Clone for AppKeyboardAction
Source§fn clone(&self) -> AppKeyboardAction
fn clone(&self) -> AppKeyboardAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppKeyboardAction
impl Debug for AppKeyboardAction
Source§impl<'de> Deserialize<'de> for AppKeyboardAction
impl<'de> Deserialize<'de> for AppKeyboardAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppKeyboardAction
impl RefUnwindSafe for AppKeyboardAction
impl Send for AppKeyboardAction
impl Sync for AppKeyboardAction
impl Unpin for AppKeyboardAction
impl UnsafeUnpin for AppKeyboardAction
impl UnwindSafe for AppKeyboardAction
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