yazi/yazi-widgets/src/input/event.rs
2026-03-19 21:19:10 +08:00

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(_)) }
}