Lines Matching refs:key
297 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
298 static void handle_f1(int *key, struct menu *current_item);
299 static void handle_f2(int *key, struct menu *current_item);
300 static void handle_f3(int *key, struct menu *current_item);
301 static void handle_f4(int *key, struct menu *current_item);
302 static void handle_f5(int *key, struct menu *current_item);
303 static void handle_f6(int *key, struct menu *current_item);
304 static void handle_f7(int *key, struct menu *current_item);
305 static void handle_f8(int *key, struct menu *current_item);
306 static void handle_f9(int *key, struct menu *current_item);
311 function_key key; member
320 .key = F_HELP,
326 .key = F_SYMBOL,
332 .key = F_INSTS,
338 .key = F_CONF,
344 .key = F_BACK,
350 .key = F_SAVE,
356 .key = F_LOAD,
362 .key = F_SEARCH,
368 .key = F_EXIT,
396 static void handle_f1(int *key, struct menu *current_item) in handle_f1() argument
404 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
411 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
420 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
436 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
438 *key = KEY_LEFT; in handle_f5()
443 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
450 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
457 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
464 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
471 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
475 if (*key == KEY_RESIZE) { in process_special_keys()
481 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
482 *key == '0' + function_keys[i].key){ in process_special_keys()
483 function_keys[i].handler(key, menu); in process_special_keys()
1004 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1006 char c = (char) key; in do_match()
1009 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1026 } else if (key == KEY_DOWN) { in do_match()
1030 } else if (key == KEY_UP) { in do_match()
1034 } else if (key == KEY_BACKSPACE || key == 8 || key == 127) { in do_match()