database done + popup start

This commit is contained in:
maxstrb 2025-09-14 12:13:04 +02:00
commit 234b17a8b0
12 changed files with 1134 additions and 0 deletions

10
src/focused.rs Normal file
View file

@ -0,0 +1,10 @@
use crossterm::event::KeyEvent;
use crate::database::DB;
use crate::events::AppEvent;
pub trait Focused {
fn take_focus(&mut self);
fn lose_focus(&mut self);
fn handle_input(&mut self, key_event: KeyEvent, db: &mut DB) -> Option<Vec<AppEvent>>;
}