add_table now ported to the canvas library also

This commit is contained in:
Priec
2025-07-30 14:06:05 +02:00
parent 3c2eef9596
commit 0011ba0c04
5 changed files with 177 additions and 62 deletions

View File

@@ -348,10 +348,10 @@ pub async fn handle_edit_event(
)
.await?
} else if app_state.ui.show_add_table {
// FIX: Pass &mut event_handler.ideal_cursor_column
add_table_e::execute_edit_action(
action_str,
// NEW: Use unified canvas handler instead of add_table_e::execute_edit_action
handle_canvas_state_edit(
key,
config,
&mut admin_state.add_table_state,
&mut event_handler.ideal_cursor_column,
)
@@ -399,10 +399,10 @@ pub async fn handle_edit_event(
)
.await?
} else if app_state.ui.show_add_table {
// FIX: Pass &mut event_handler.ideal_cursor_column
add_table_e::execute_edit_action(
"insert_char",
// NEW: Use unified canvas handler instead of add_table_e::execute_edit_action
handle_canvas_state_edit(
key,
config,
&mut admin_state.add_table_state,
&mut event_handler.ideal_cursor_column,
)