This commit is contained in:
filipriec
2025-04-10 14:22:30 +02:00
parent 0d1a0be1a0
commit 7a364d654c

View File

@@ -23,7 +23,7 @@ pub async fn handle_dialog_event(
// Check general bindings for dialog actions
if let Some(action) = config.get_general_action(key.code, key.modifiers) {
match action {
"move_up" | "previous_option" => {
"move_down" | "next_option" => {
let current_index = app_state.ui.dialog.dialog_active_button_index;
let num_buttons = app_state.ui.dialog.dialog_buttons.len();
if num_buttons > 0 && current_index < num_buttons - 1 {
@@ -31,7 +31,7 @@ pub async fn handle_dialog_event(
}
return Some(Ok(EventOutcome::Ok(String::new())));
}
"move_down" | "next_option" => {
"move_up" | "previous_option" => {
let current_index = app_state.ui.dialog.dialog_active_button_index;
if current_index > 0 {
app_state.ui.dialog.dialog_active_button_index -= 1;