diff options
| author | lukeflo | 2024-10-02 21:45:26 +0200 |
|---|---|---|
| committer | lukeflo | 2024-10-02 21:45:26 +0200 |
| commit | 36f01f65b1804125e7d18a17ce57205248e1b7fd (patch) | |
| tree | c46e63486a3c96448db091174efdcf343693dd9b /src/frontend/handler.rs | |
| parent | c78ae222ea75d36f4aef6e274d2c986e37462276 (diff) | |
| download | bibiman-36f01f65b1804125e7d18a17ce57205248e1b7fd.tar.gz bibiman-36f01f65b1804125e7d18a17ce57205248e1b7fd.zip | |
reordered tui handling
Diffstat (limited to 'src/frontend/handler.rs')
| -rw-r--r-- | src/frontend/handler.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/handler.rs b/src/frontend/handler.rs index ad899e2..11c2652 100644 --- a/src/frontend/handler.rs +++ b/src/frontend/handler.rs @@ -15,13 +15,14 @@ // along with this program. If not, see <https://www.gnu.org/licenses/>. ///// -use crate::frontend::app::{App, AppResult}; +use crate::frontend::app::App; use crossterm::event::{KeyCode, KeyEvent, KeyModifiers}; use super::app::{CurrentArea, FormerArea}; +use color_eyre::eyre::Result; /// Handles the key events and updates the state of [`App`]. -pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { +pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> Result<()> { // Keycodes activated for every area (high priority) match key_event.code { // Exit application on `ESC` or `q` |
