database done + popup start
This commit is contained in:
commit
234b17a8b0
12 changed files with 1134 additions and 0 deletions
10
src/focused.rs
Normal file
10
src/focused.rs
Normal 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>>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue