Lines Matching refs:key

47 "<n> to remove it.  You may press the <Space> key to cycle through the\n"
78 "Unless in a data entry window, key <1> may be used instead of <F1>,\n"
149 "For verbose global help use key <1>.\n"
289 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
290 static void handle_f1(int *key, struct menu *current_item);
291 static void handle_f2(int *key, struct menu *current_item);
292 static void handle_f3(int *key, struct menu *current_item);
293 static void handle_f4(int *key, struct menu *current_item);
294 static void handle_f5(int *key, struct menu *current_item);
295 static void handle_f6(int *key, struct menu *current_item);
296 static void handle_f7(int *key, struct menu *current_item);
297 static void handle_f8(int *key, struct menu *current_item);
298 static void handle_f9(int *key, struct menu *current_item);
303 function_key key;
312 .key = F_HELP,
318 .key = F_SYMBOL,
324 .key = F_INSTS,
330 .key = F_CONF,
336 .key = F_BACK,
342 .key = F_SAVE,
348 .key = F_LOAD,
354 .key = F_SEARCH,
360 .key = F_EXIT,
388 static void handle_f1(int *key, struct menu *current_item)
396 static void handle_f2(int *key, struct menu *current_item)
403 static void handle_f3(int *key, struct menu *current_item)
412 static void handle_f4(int *key, struct menu *current_item)
428 static void handle_f5(int *key, struct menu *current_item)
430 *key = KEY_LEFT;
435 static void handle_f6(int *key, struct menu *current_item)
442 static void handle_f7(int *key, struct menu *current_item)
449 static void handle_f8(int *key, struct menu *current_item)
456 static void handle_f9(int *key, struct menu *current_item)
462 /* return != 0 to indicate the key was handles */
463 static int process_special_keys(int *key, struct menu *menu)
467 if (*key == KEY_RESIZE) {
473 if (*key == KEY_F(function_keys[i].key) ||
474 *key == '0' + function_keys[i].key){
475 function_keys[i].handler(key, menu);
1017 /* Return 0 means I have handled the key. In such a case, ans should hold the
1021 static int do_match(int key, struct match_state *state, int *ans)
1023 char c = (char) key;
1026 if (key == '/' || (state->in_search && key == 27)) {
1043 } else if (key == KEY_DOWN) {
1047 } else if (key == KEY_UP) {
1051 } else if (key == KEY_BACKSPACE || key == 127) {