Lines Matching refs:key

293 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
294 static void handle_f1(int *key, struct menu *current_item);
295 static void handle_f2(int *key, struct menu *current_item);
296 static void handle_f3(int *key, struct menu *current_item);
297 static void handle_f4(int *key, struct menu *current_item);
298 static void handle_f5(int *key, struct menu *current_item);
299 static void handle_f6(int *key, struct menu *current_item);
300 static void handle_f7(int *key, struct menu *current_item);
301 static void handle_f8(int *key, struct menu *current_item);
302 static void handle_f9(int *key, struct menu *current_item);
307 function_key key; member
316 .key = F_HELP,
322 .key = F_SYMBOL,
328 .key = F_INSTS,
334 .key = F_CONF,
340 .key = F_BACK,
346 .key = F_SAVE,
352 .key = F_LOAD,
358 .key = F_SEARCH,
364 .key = F_EXIT,
391 static void handle_f1(int *key, struct menu *current_item) in handle_f1() argument
399 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
406 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
415 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
431 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
433 *key = KEY_LEFT; in handle_f5()
438 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
445 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
452 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
459 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
466 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
470 if (*key == KEY_RESIZE) { in process_special_keys()
476 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
477 *key == '0' + function_keys[i].key){ in process_special_keys()
478 function_keys[i].handler(key, menu); in process_special_keys()
1018 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1020 char c = (char) key; in do_match()
1023 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1040 } else if (key == KEY_DOWN) { in do_match()
1044 } else if (key == KEY_UP) { in do_match()
1048 } else if (key == KEY_BACKSPACE || key == 127) { in do_match()