movement
This commit is contained in:
@@ -39,7 +39,7 @@ use crate::modes::{
|
||||
highlight::highlight,
|
||||
general::{navigation, dialog},
|
||||
};
|
||||
use crate::functions::modes::navigation::admin_nav;
|
||||
use crate::functions::modes::navigation::{admin_nav, add_table_nav};
|
||||
use crate::config::binds::key_sequences::KeySequenceTracker;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
@@ -175,6 +175,17 @@ impl EventHandler {
|
||||
return Ok(EventOutcome::Ok(self.command_message.clone()));
|
||||
}
|
||||
}
|
||||
// --- Add Table Page Navigation ---
|
||||
if app_state.ui.show_add_table {
|
||||
if let Some(action) = config.get_general_action(key.code, key.modifiers) {
|
||||
if add_table_nav::handle_navigation(
|
||||
&mut admin_state.add_table_state,
|
||||
action,
|
||||
) {
|
||||
return Ok(EventOutcome::Ok(String::new()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let nav_outcome = navigation::handle_navigation_event(
|
||||
key,
|
||||
|
||||
@@ -25,7 +25,7 @@ impl ModeManager {
|
||||
return AppMode::Highlight;
|
||||
}
|
||||
|
||||
if app_state.ui.focus_outside_canvas {
|
||||
if app_state.ui.focus_outside_canvas || app_state.ui.show_add_table{
|
||||
return AppMode::General;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user