ad_editor/
input.rs

1//! Fetching and parsing input from the user
2use crate::{
3    editor::{Action, Actions},
4    fsys::Message,
5    key::Input,
6};
7
8/// An input event that can be processed by the editor event loop
9#[derive(Debug)]
10pub enum Event {
11    /// A [Message] received from the virtual filesystem interface
12    Message(Message),
13    /// An [Input] from the user
14    Input(Input),
15    /// An [Action] for the event loop to handle
16    Action(Action),
17    /// Multiple [Action]s to be handled in a batch
18    Actions(Actions),
19    /// A signal that our window size has changed
20    WinsizeChanged { rows: usize, cols: usize },
21}