Struct termimad::EventSourceOptions
source · pub struct EventSourceOptions {
pub combine_keys: bool,
pub mandate_modifier_for_multiple_keys: bool,
pub discard_raw_key_events: bool,
pub discard_mouse_move: bool,
pub discard_mouse_drag: bool,
}
Fields§
§combine_keys: bool
Whether to try combine key events into key combinations. This changes the behavior of the terminal, if it’s compatible, then restores the standard behavior on drop.
mandate_modifier_for_multiple_keys: bool
When combining is enabled, you may either want “simple” keys (i.e. without modifier or space) to be handled on key press, or to wait for a key release so that maybe they may be part of a combination like ‘a-b’. If combinations without modifier or space are unlikely in your application, you may make it feel snappier by setting this to true.
This setting has no effect when combining isn’t enabled.
discard_raw_key_events: bool
Whether to filter out raw key events (default true) (if you want to manage repeat, press, release, specifically, you’re probably not interested in combining keys)
discard_mouse_move: bool
whether to filter out simple mouse moves (default true)
discard_mouse_drag: bool
whether to filter out mouse drag (default false)