45#include "docs/makedoc_defs.h"
48#include "docs/makedoc_defs.h"
79 {
"bottom-page", OP_BOTTOM_PAGE },
80 {
"check-stats", OP_CHECK_STATS },
81 {
"current-bottom", OP_CURRENT_BOTTOM },
82 {
"current-middle", OP_CURRENT_MIDDLE },
83 {
"current-top", OP_CURRENT_TOP },
84 {
"end-cond", OP_END_COND },
85 {
"enter-command", OP_ENTER_COMMAND },
87 {
"first-entry", OP_FIRST_ENTRY },
88 {
"half-down", OP_HALF_DOWN },
89 {
"half-up", OP_HALF_UP },
92 {
"jump", OP_JUMP_1 },
93 {
"jump", OP_JUMP_2 },
94 {
"jump", OP_JUMP_3 },
95 {
"jump", OP_JUMP_4 },
96 {
"jump", OP_JUMP_5 },
97 {
"jump", OP_JUMP_6 },
98 {
"jump", OP_JUMP_7 },
99 {
"jump", OP_JUMP_8 },
100 {
"jump", OP_JUMP_9 },
101 {
"last-entry", OP_LAST_ENTRY },
102 {
"middle-page", OP_MIDDLE_PAGE },
103 {
"next-entry", OP_NEXT_ENTRY },
104 {
"next-line", OP_NEXT_LINE },
105 {
"next-page", OP_NEXT_PAGE },
106 {
"previous-entry", OP_PREV_ENTRY },
107 {
"previous-line", OP_PREV_LINE },
108 {
"previous-page", OP_PREV_PAGE },
109 {
"redraw-screen", OP_REDRAW },
110 {
"search", OP_SEARCH },
111 {
"search-next", OP_SEARCH_NEXT },
112 {
"search-opposite", OP_SEARCH_OPPOSITE },
113 {
"search-reverse", OP_SEARCH_REVERSE },
114 {
"select-entry", OP_GENERIC_SELECT_ENTRY },
115 {
"shell-escape", OP_SHELL_ESCAPE },
116 {
"show-log-messages", OP_SHOW_LOG_MESSAGES },
117 {
"show-version", OP_VERSION },
118 {
"tag-entry", OP_TAG },
119 {
"tag-prefix", OP_TAG_PREFIX },
120 {
"tag-prefix-cond", OP_TAG_PREFIX_COND },
121 {
"top-page", OP_TOP_PAGE },
122 {
"what-key", OP_WHAT_KEY },
141 { OP_BOTTOM_PAGE,
"L" },
142 { OP_ENTER_COMMAND,
":" },
143 { OP_FIRST_ENTRY,
"<home>" },
144 { OP_FIRST_ENTRY,
"=" },
145 { OP_GENERIC_SELECT_ENTRY,
"<keypadenter>" },
146 { OP_GENERIC_SELECT_ENTRY,
"\n" },
147 { OP_GENERIC_SELECT_ENTRY,
"\r" },
148 { OP_HALF_DOWN,
"]" },
160 { OP_LAST_ENTRY,
"*" },
161 { OP_LAST_ENTRY,
"<end>" },
162 { OP_MIDDLE_PAGE,
"M" },
163 { OP_NEXT_ENTRY,
"<down>" },
164 { OP_NEXT_ENTRY,
"j" },
165 { OP_NEXT_LINE,
">" },
166 { OP_NEXT_PAGE,
"<pagedown>" },
167 { OP_NEXT_PAGE,
"<right>" },
168 { OP_NEXT_PAGE,
"z" },
169 { OP_PREV_ENTRY,
"<up>" },
170 { OP_PREV_ENTRY,
"k" },
171 { OP_PREV_LINE,
"<" },
172 { OP_PREV_PAGE,
"<left>" },
173 { OP_PREV_PAGE,
"<pageup>" },
174 { OP_PREV_PAGE,
"Z" },
175 { OP_REDRAW,
"\014" },
177 { OP_SEARCH_NEXT,
"n" },
178 { OP_SEARCH_REVERSE,
"\033/" },
179 { OP_SHELL_ESCAPE,
"!" },
181 { OP_TAG_PREFIX,
";" },
182 { OP_TOP_PAGE,
"H" },
195 struct SubMenu *sm_generic = NULL;
#define MFF_DEPRECATED
Redraw the pager.
static const struct MenuFuncOp OpGeneric[]
Functions for the Generic Menu.
static const struct MenuOpSeq GenericDefaultBindings[]
Key bindings for the Generic Menu.
static const struct MenuOpSeq DialogDefaultBindings[]
Key bindings for Simple Dialogs.
struct SubMenu * generic_init_keys(void)
Initialise the Generic Keybindings.
static const struct MenuFuncOp OpDialog[]
Functions for Simple Dialogs.
void km_menu_add_submenu(struct MenuDefinition *md, struct SubMenu *sm)
Add a SubMenu to a Menu Definition.
struct SubMenu * km_register_submenu(const struct MenuFuncOp functions[])
Register a submenu.
struct MenuDefinition * km_register_menu(int menu, const char *name)
Register a menu.
void km_menu_add_bindings(struct MenuDefinition *md, const struct MenuOpSeq bindings[])
Add Keybindings to a Menu.
All user-callable functions.
@ MENU_DIALOG
Simple Dialog.
@ MENU_GENERIC
Generic selection list.