still not working autocomplete

This commit is contained in:
filipriec
2025-04-12 00:13:28 +02:00
parent 6b16068706
commit 6d6df7ca5c
2 changed files with 2 additions and 5 deletions

View File

@@ -115,9 +115,7 @@ pub async fn handle_edit_event(
// Character insertion
if let KeyCode::Char(_) = key.code {
// --- Autocomplete Trigger on Char Insert ---
let is_role_field = app_state.ui.show_register && register_state.current_field() == 4;
let result = // Store result before potential update
// --- End Autocomplete Trigger ---
return if app_state.ui.show_login {
@@ -156,7 +154,6 @@ pub async fn handle_edit_event(
if is_role_field {
register_state.update_role_suggestions();
}
return result; // Return the result from execute_edit_action
}
// Handle Backspace/Delete for Autocomplete Trigger