minor changes

This commit is contained in:
filipriec
2025-04-04 23:28:30 +02:00
parent ce85a050d3
commit 1d0ceb7045
2 changed files with 2 additions and 3 deletions

View File

@@ -19,8 +19,7 @@ pub async fn execute_action<S: CanvasState>(
command_message: &mut String, command_message: &mut String,
) -> Result<String, Box<dyn Error>> { ) -> Result<String, Box<dyn Error>> {
match action { match action {
"previous_entry" | "next_entry" | "move_up" | "move_down" | "previous_entry" | "next_entry" => {
"move_first_line" | "move_last_line" => {
key_sequence_tracker.reset(); key_sequence_tracker.reset();
Ok(format!( Ok(format!(
"Action '{}' should be handled by context-specific logic", "Action '{}' should be handled by context-specific logic",

View File

@@ -19,7 +19,7 @@ impl ModeManager {
return AppMode::Command; return AppMode::Command;
} }
if app_state.ui.show_login { // NEW: Check auth visibility if app_state.ui.show_login {
if event_handler.is_edit_mode { if event_handler.is_edit_mode {
AppMode::Edit AppMode::Edit
} else { } else {