disabling modes where they shouldnt be enabled BIG UPDATE
This commit is contained in:
@@ -55,7 +55,7 @@ impl EventHandler {
|
||||
let modifiers = key.modifiers;
|
||||
|
||||
// Handle general mode (replaces intro and admin)
|
||||
if app_state.ui.show_general_mode {
|
||||
if app_state.ui.show_intro || app_state.ui.show_admin {
|
||||
if let Some(action) = config.get_general_action(key_code, modifiers) {
|
||||
match action {
|
||||
"move_up" => {
|
||||
@@ -75,8 +75,11 @@ impl EventHandler {
|
||||
return Ok((false, String::new()));
|
||||
}
|
||||
"select" => {
|
||||
// Handle selection based on current view
|
||||
app_state.ui.show_general_mode = false;
|
||||
if app_state.ui.show_intro {
|
||||
app_state.ui.show_intro = false;
|
||||
} else if app_state.ui.show_admin {
|
||||
app_state.ui.show_admin = false;
|
||||
}
|
||||
return Ok((false, "Selected".to_string()));
|
||||
}
|
||||
"toggle_sidebar" => {
|
||||
@@ -179,7 +182,6 @@ impl EventHandler {
|
||||
let context_action = config.get_action_for_current_context(
|
||||
self.is_edit_mode,
|
||||
self.command_mode,
|
||||
app_state.ui.show_general_mode,
|
||||
key_code,
|
||||
modifiers
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user