⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 action.c

📁 一个很有名的浏览器
💻 C
📖 第 1 页 / 共 2 页
字号:
#ifdef CONFIG_MARKS			ses->kbdprefix.mark = KP_MARK_SET;			status = FRAME_EVENT_REFRESH;#endif			break;		case ACT_MAIN_MARK_GOTO:#ifdef CONFIG_MARKS			/* TODO: Show promptly a menu (or even listbox?)			 * with all the marks. But the next letter must			 * still choose a mark directly! --pasky */			ses->kbdprefix.mark = KP_MARK_GOTO;			status = FRAME_EVENT_REFRESH;#endif			break;		case ACT_MAIN_MENU:			activate_bfu_technology(ses, -1);			break;		case ACT_MAIN_MOVE_CURSOR_UP:			if (!has_vs) break;			status = move_cursor_up(ses, doc_view);			break;		case ACT_MAIN_MOVE_CURSOR_DOWN:			if (!has_vs) break;			status = move_cursor_down(ses, doc_view);			break;		case ACT_MAIN_MOVE_CURSOR_LEFT:			if (!has_vs) break;			status = move_cursor_left(ses, doc_view);			break;		case ACT_MAIN_MOVE_CURSOR_RIGHT:			if (!has_vs) break;			status = move_cursor_right(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_DOWN:			if (!has_vs) break;			status = move_link_down(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_LEFT:			if (!has_vs) break;			status = move_link_left(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_NEXT:			if (!has_vs) break;			status = move_link_next(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_PREV:			if (!has_vs) break;			status = move_link_prev(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_RIGHT:			if (!has_vs) break;			status = move_link_right(ses, doc_view);			break;		case ACT_MAIN_MOVE_LINK_UP:			if (!has_vs) break;			status = move_link_up(ses, doc_view);			break;		case ACT_MAIN_MOVE_PAGE_DOWN:			if (!has_vs) break;			status = move_page_down(ses, doc_view);			break;		case ACT_MAIN_MOVE_PAGE_UP:			if (!has_vs) break;			status = move_page_up(ses, doc_view);			break;		case ACT_MAIN_MOVE_DOCUMENT_START:			if (!has_vs) break;			status = move_document_start(ses, doc_view);			break;		case ACT_MAIN_MOVE_DOCUMENT_END:			if (!has_vs) break;			status = move_document_end(ses, doc_view);			break;		case ACT_MAIN_OPEN_LINK_IN_NEW_TAB:			if (!try_jump_to_link_number(ses, doc_view))				break;			open_current_link_in_new_tab(ses, 0);			break;		case ACT_MAIN_OPEN_LINK_IN_NEW_TAB_IN_BACKGROUND:			if (!try_jump_to_link_number(ses, doc_view))				break;			open_current_link_in_new_tab(ses, 1);			break;		case ACT_MAIN_OPEN_LINK_IN_NEW_WINDOW:			/* FIXME: Use do_frame_action(). --jonas */			if (!has_vs) break;			if (!try_jump_to_link_number(ses, doc_view)			    || doc_view->vs->current_link == -1)				break;			open_in_new_window(term, send_open_in_new_window, ses);			break;		case ACT_MAIN_OPEN_NEW_TAB:			open_uri_in_new_tab(ses, NULL, 0, 1);			break;		case ACT_MAIN_OPEN_NEW_TAB_IN_BACKGROUND:			open_uri_in_new_tab(ses, NULL, 1, 1);			break;		case ACT_MAIN_OPEN_NEW_WINDOW:			open_in_new_window(term, send_open_new_window, ses);			break;		case ACT_MAIN_OPEN_OS_SHELL:			if (anonymous) break;			exec_shell(term);			break;		case ACT_MAIN_OPTIONS_MANAGER:			if (anonymous) break;			options_manager(ses);			break;		case ACT_MAIN_QUIT:			exit_prog(ses, 1);			break;		case ACT_MAIN_REALLY_QUIT:			exit_prog(ses, 0);			break;		case ACT_MAIN_REDRAW:			redraw_terminal_cls(term);			break;		case ACT_MAIN_RELOAD:			reload(ses, CACHE_MODE_INCREMENT);			break;		case ACT_MAIN_RERENDER:			draw_formatted(ses, 2);			break;		case ACT_MAIN_RESET_FORM:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 reset_form, 0, 0);			break;		case ACT_MAIN_RESOURCE_INFO:			resource_info(term);			break;		case ACT_MAIN_SAVE_AS:			if (!has_vs || anonymous) break;			status = do_frame_action(ses, doc_view,						 save_as, 0, 0);			break;		case ACT_MAIN_SAVE_FORMATTED:			if (!has_vs || anonymous) break;			status = do_frame_action(ses, doc_view,						 save_formatted_dlg,						 0, 0);			break;		case ACT_MAIN_SAVE_OPTIONS:			if (anonymous) break;			write_config(term);			break;		case ACT_MAIN_SAVE_URL_AS:			if (anonymous) break;			save_url_as(ses);			break;		case ACT_MAIN_SCROLL_DOWN:			if (!has_vs) break;			status = scroll_down(ses, doc_view);			break;		case ACT_MAIN_SCROLL_LEFT:			if (!has_vs) break;			status = scroll_left(ses, doc_view);			break;		case ACT_MAIN_SCROLL_RIGHT:			if (!has_vs) break;			status = scroll_right(ses, doc_view);			break;		case ACT_MAIN_SCROLL_UP:			if (!has_vs) break;			status = scroll_up(ses, doc_view);			break;		case ACT_MAIN_SEARCH:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 search_dlg, 1, 0);			break;		case ACT_MAIN_SEARCH_BACK:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 search_dlg, -1, 0);			break;		case ACT_MAIN_SEARCH_TYPEAHEAD:		case ACT_MAIN_SEARCH_TYPEAHEAD_LINK:		case ACT_MAIN_SEARCH_TYPEAHEAD_TEXT:		case ACT_MAIN_SEARCH_TYPEAHEAD_TEXT_BACK:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 search_typeahead, action, 0);			break;		case ACT_MAIN_SHOW_TERM_OPTIONS:			terminal_options(term, NULL, ses);			break;		case ACT_MAIN_SUBMIT_FORM:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 submit_form, 0, 0);			break;		case ACT_MAIN_SUBMIT_FORM_RELOAD:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 submit_form, 1, 0);			break;		case ACT_MAIN_TAB_CLOSE:			close_tab(term, ses);			status = FRAME_EVENT_SESSION_DESTROYED;			break;		case ACT_MAIN_TAB_CLOSE_ALL_BUT_CURRENT:			close_all_tabs_but_current(ses);			break;		case ACT_MAIN_TAB_EXTERNAL_COMMAND:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 pass_uri_to_command,						 PASS_URI_TAB, 0);			break;		case ACT_MAIN_TAB_MOVE_LEFT:			move_current_tab(ses, -1);			break;		case ACT_MAIN_TAB_MOVE_RIGHT:			move_current_tab(ses, 1);			break;		case ACT_MAIN_TAB_MENU:			assert(ses->tab == get_current_tab(term));			if (ses->status.show_tabs_bar)				tab_menu(ses, ses->tab->xpos,					 term->height - 1					  - ses->status.show_status_bar,					 1);			else				tab_menu(ses, 0, 0, 0);			break;		case ACT_MAIN_TAB_NEXT:			switch_current_tab(ses, 1);			break;		case ACT_MAIN_TAB_PREV:			switch_current_tab(ses, -1);			break;		case ACT_MAIN_TERMINAL_RESIZE:			resize_terminal_dialog(term);			break;		case ACT_MAIN_TOGGLE_CSS:#ifdef CONFIG_CSS			toggle_document_option(ses, "document.css.enable");#endif			break;		case ACT_MAIN_TOGGLE_DISPLAY_IMAGES:			toggle_document_option(ses, "document.browse.images.show_as_links");			break;		case ACT_MAIN_TOGGLE_DISPLAY_TABLES:			toggle_document_option(ses, "document.html.display_tables");			break;		case ACT_MAIN_TOGGLE_DOCUMENT_COLORS:			toggle_document_option(ses, "document.colors.use_document_colors");			break;		case ACT_MAIN_TOGGLE_HTML_PLAIN:			toggle_plain_html(ses, ses->doc_view, 0);			break;		case ACT_MAIN_TOGGLE_NUMBERED_LINKS:			toggle_document_option(ses, "document.browse.links.numbering");			break;		case ACT_MAIN_TOGGLE_PLAIN_COMPRESS_EMPTY_LINES:			toggle_document_option(ses, "document.plain.compress_empty_lines");			break;		case ACT_MAIN_TOGGLE_WRAP_TEXT:			toggle_wrap_text(ses, ses->doc_view, 0);			break;		case ACT_MAIN_VIEW_IMAGE:			if (!has_vs) break;			status = do_frame_action(ses, doc_view,						 view_image, 0, 1);			break;		case ACT_MAIN_SCRIPTING_FUNCTION:		case ACT_MAIN_NONE:		case MAIN_ACTIONS:		default:			if (verbose) {				INTERNAL("No action handling defined for '%s'.",					 write_action(KEYMAP_MAIN, action));			}			status = FRAME_EVENT_IGNORED;	}	/* XXX: At this point the session may have been destroyed */	if (status != FRAME_EVENT_SESSION_DESTROYED	    && ses->insert_mode == INSERT_MODE_ON	    && link != get_current_link(doc_view))		ses->insert_mode = INSERT_MODE_OFF;	if (status == FRAME_EVENT_REFRESH && doc_view)		refresh_view(ses, doc_view, 0);	return status;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -