pub enum Action {
SetView(String),
LockView {
lock: String,
unlock: String,
latches: bool,
looks_locked_from: Vec<String>,
},
ApplyModifier(Modifier),
Submit {
text: Option<CString>,
keys: Vec<KeySym>,
},
Erase,
ShowPreferences,
}
Expand description
Action to perform on the keypress and, in reverse, on keyrelease
Variants
SetView(String)
Switch to this view
LockView
Fields
lock: String
unlock: String
When unlocked by pressing it or emitting a key
latches: bool
Whether key has a latched state that pops when another key is pressed.
Switch to a view and latch
ApplyModifier(Modifier)
Hold this modifier for as long as the button is pressed
Submit
Fields
Submit some text
Erase
Erase a position behind the cursor
ShowPreferences
Implementations
Trait Implementations
impl StructuralPartialEq for Action
Auto Trait Implementations
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more