Lines Matching refs:key

295 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
296 static void handle_f1(int *key, struct menu *current_item);
297 static void handle_f2(int *key, struct menu *current_item);
298 static void handle_f3(int *key, struct menu *current_item);
299 static void handle_f4(int *key, struct menu *current_item);
300 static void handle_f5(int *key, struct menu *current_item);
301 static void handle_f6(int *key, struct menu *current_item);
302 static void handle_f7(int *key, struct menu *current_item);
303 static void handle_f8(int *key, struct menu *current_item);
304 static void handle_f9(int *key, struct menu *current_item);
309 function_key key; member
318 .key = F_HELP,
324 .key = F_SYMBOL,
330 .key = F_INSTS,
336 .key = F_CONF,
342 .key = F_BACK,
348 .key = F_SAVE,
354 .key = F_LOAD,
360 .key = F_SEARCH,
366 .key = F_EXIT,
394 static void handle_f1(int *key, struct menu *current_item) in handle_f1() argument
402 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
409 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
418 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
434 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
436 *key = KEY_LEFT; in handle_f5()
441 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
448 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
455 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
462 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
469 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
473 if (*key == KEY_RESIZE) { in process_special_keys()
479 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
480 *key == '0' + function_keys[i].key){ in process_special_keys()
481 function_keys[i].handler(key, menu); in process_special_keys()
699 static int next_jump_key(int key) in next_jump_key() argument
701 if (key < '1' || key > '9') in next_jump_key()
704 key++; in next_jump_key()
706 if (key > '9') in next_jump_key()
707 key = '1'; in next_jump_key()
709 return key; in next_jump_key()
712 static int handle_search_keys(int key, size_t start, size_t end, void *_data) in handle_search_keys() argument
718 if (key < '1' || key > '9') in handle_search_keys()
730 if (key == index) { in handle_search_keys()
1092 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1094 char c = (char) key; in do_match()
1097 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1114 } else if (key == KEY_DOWN) { in do_match()
1118 } else if (key == KEY_UP) { in do_match()
1122 } else if (key == KEY_BACKSPACE || key == 8 || key == 127) { in do_match()