mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
14 lines
233 B
Rust
14 lines
233 B
Rust
use yazi_shared::Id;
|
|
|
|
#[derive(Debug)]
|
|
pub enum InputEvent {
|
|
Submit(String),
|
|
Cancel(String),
|
|
|
|
Type(String),
|
|
Trigger(String, Option<Id>),
|
|
}
|
|
|
|
impl InputEvent {
|
|
pub fn is_submit(&self) -> bool { matches!(self, Self::Submit(_)) }
|
|
}
|