pub struct KeySequenceConfig {
pub sequence_timeout: Duration,
pub detect_double_escape: bool,
}Expand description
Configuration for key sequence detection.
Fields§
§sequence_timeout: DurationTime window for sequence completion (default: 250ms).
If a second key doesn’t arrive within this window, the first key is emitted as a single key event.
detect_double_escape: boolWhether to detect Esc Esc sequences (default: true).
Implementations§
Source§impl KeySequenceConfig
impl KeySequenceConfig
Sourcepub fn with_timeout(timeout: Duration) -> Self
pub fn with_timeout(timeout: Duration) -> Self
Create a config with a custom timeout.
Trait Implementations§
Source§impl Clone for KeySequenceConfig
impl Clone for KeySequenceConfig
Source§fn clone(&self) -> KeySequenceConfig
fn clone(&self) -> KeySequenceConfig
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 moreSource§impl Debug for KeySequenceConfig
impl Debug for KeySequenceConfig
Auto Trait Implementations§
impl Freeze for KeySequenceConfig
impl RefUnwindSafe for KeySequenceConfig
impl Send for KeySequenceConfig
impl Sync for KeySequenceConfig
impl Unpin for KeySequenceConfig
impl UnsafeUnpin for KeySequenceConfig
impl UnwindSafe for KeySequenceConfig
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