still not working autocomplete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user