1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[iframe] next|prev frame when there is no link current doc_view

This commit is contained in:
Witold Filipczyk 2021-08-02 20:08:45 +02:00
parent f77206f369
commit 857c819da1
2 changed files with 48 additions and 0 deletions

View File

@ -507,6 +507,7 @@ html_iframe_do(char *a, char *object_src,
if (height > 0) {
int y = html_context->part->cy + 1;
char *url2;
ln_break(html_context, height + 3);
url2 = join_urls(html_context->base_href, url);

View File

@ -370,18 +370,35 @@ do_action(struct session *ses, enum main_action action_id, int verbose)
case ACT_MAIN_MOVE_HALF_PAGE_DOWN:
status = move_half_page_down(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_HALF_PAGE_UP:
status = move_half_page_up(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, -1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_DOWN:
status = move_link_down(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_DOWN_LINE:
status = move_link_down_line(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_LEFT:
@ -394,10 +411,19 @@ do_action(struct session *ses, enum main_action action_id, int verbose)
case ACT_MAIN_MOVE_LINK_NEXT:
status = move_link_next(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_PREV:
status = move_link_prev(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, -1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_RIGHT:
@ -406,22 +432,43 @@ do_action(struct session *ses, enum main_action action_id, int verbose)
case ACT_MAIN_MOVE_LINK_RIGHT_LINE:
status = move_link_next_line(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_UP:
status = move_link_up(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, -1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_LINK_UP_LINE:
status = move_link_up_line(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, -1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_PAGE_DOWN:
status = move_page_down(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, 1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_PAGE_UP:
status = move_page_up(ses, doc_view);
if (status != FRAME_EVENT_REFRESH) {
next_frame(ses, -1);
draw_formatted(ses, 0);
}
break;
case ACT_MAIN_MOVE_DOCUMENT_START: