Skip to content

input

Functions

  • command_for_key - Returns the command for one pressed key, if the key is meaningful.
  • handle_key - Applies the command represented by a key and returns runner side effects.

firma_tui::control::input::command_for_key

Section titled “firma_tui::control::input::command_for_key”

Function

Returns the command for one pressed key, if the key is meaningful.

fn command_for_key(app: & mut crate::control::app::App, key: crossterm::event::KeyCode) -> Option<crate::control::command::ControlCommand>

Function

Applies the command represented by a key and returns runner side effects.

fn handle_key(app: & mut crate::control::app::App, key: crossterm::event::KeyCode) -> Vec<crate::control::command::ControlEffect>