diff options
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/keymap/keymap_store.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/keymap/keymap_store.rs b/src/config/keymap/keymap_store.rs index e5e32e5..e4da9da 100644 --- a/src/config/keymap/keymap_store.rs +++ b/src/config/keymap/keymap_store.rs @@ -8,9 +8,11 @@ use ratatui::crossterm::event::KeyEvent; use crate::lua::runnable::Runnable; +type KeyMapHandler = Arc<Mutex<dyn Runnable<(), bool>>>; + #[derive(Default, Clone)] pub struct KeyMapStore { - store: Option<HashMap<KeyEvent, Arc<Mutex<dyn Runnable<(), bool>>>>>, + store: Option<HashMap<KeyEvent, KeyMapHandler>>, } impl KeyMapStore { |