Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
olikraus committed Aug 22, 2021
1 parent 50110df commit 5587f7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sys/sdl/ui/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,16 +543,15 @@ void ui_EnterForm(ui_t *ui, uint8_t initial_cursor_position)
ui_loop_over_form(ui, ui_task_form_start);

/* assign initional cursor focus */
ui_loop_over_form(ui, ui_task_find_first_cursor_uif);

ui_loop_over_form(ui, ui_task_find_first_cursor_uif);
ui->cursor_focus_fds = ui->target_fds; // NULL is ok

while( initial_cursor_position > 0 )
{
ui_next_field(ui);
initial_cursor_position--;
}

ui->cursor_focus_fds = ui->target_fds; // NULL is ok
ui_send_cursor_msg(ui, UIF_MSG_CURSOR_ENTER);
}

Expand Down

0 comments on commit 5587f7d

Please sign in to comment.