tab key move focus bug: when last to the first, first edit not in view

This commit is contained in:
lixianjing 2022-06-18 07:41:41 +08:00
parent 8bcf751d1d
commit 32bf8a339f

View File

@ -315,7 +315,7 @@ static ret_t input_type_open_keyboard(input_method_t* im, const char* keyboard_n
widget_move(win, im->win->x, im->win_old_y - im->win_delta_y);
} else if (p.y < 0) {
im->win = win;
widget_move(win, im->win->x, im->win->y + im->win_delta_y);
widget_move(win, im->win->x, im->win_old_y);
im->win_delta_y = 0;
}