Lines Matching refs:key

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; member
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) in handle_f1() argument
396 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
403 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
412 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
428 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
430 *key = KEY_LEFT; in handle_f5()
435 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
442 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
449 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
456 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
463 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
467 if (*key == KEY_RESIZE) { in process_special_keys()
473 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
474 *key == '0' + function_keys[i].key){ in process_special_keys()
475 function_keys[i].handler(key, menu); in process_special_keys()
1021 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1023 char c = (char) key; in do_match()
1026 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1043 } else if (key == KEY_DOWN) { in do_match()
1047 } else if (key == KEY_UP) { in do_match()
1051 } else if (key == KEY_BACKSPACE || key == 127) { in do_match()