fixed form state removed, but not won, aint working yet

This commit is contained in:
Priec
2025-08-22 00:27:23 +02:00
parent 3dd6808ea2
commit 4ed8e7b421
7 changed files with 275 additions and 252 deletions

View File

@@ -17,7 +17,6 @@ use anyhow::Result;
pub async fn handle_navigation_event(
key: KeyEvent,
config: &Config,
form_state: &mut FormState,
app_state: &mut AppState,
login_state: &mut LoginState,
register_state: &mut RegisterState,
@@ -52,11 +51,15 @@ pub async fn handle_navigation_event(
return Ok(EventOutcome::Ok(String::new()));
}
"next_field" => {
next_field(form_state);
if let Some(fs) = app_state.form_state_mut() {
next_field(fs);
}
return Ok(EventOutcome::Ok(String::new()));
}
"prev_field" => {
prev_field(form_state);
if let Some(fs) = app_state.form_state_mut() {
prev_field(fs);
}
return Ok(EventOutcome::Ok(String::new()));
}
"enter_command_mode" => {