Lines Matching refs:key
287 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
288 static void handle_f1(int *key, struct menu *current_item);
289 static void handle_f2(int *key, struct menu *current_item);
290 static void handle_f3(int *key, struct menu *current_item);
291 static void handle_f4(int *key, struct menu *current_item);
292 static void handle_f5(int *key, struct menu *current_item);
293 static void handle_f6(int *key, struct menu *current_item);
294 static void handle_f7(int *key, struct menu *current_item);
295 static void handle_f8(int *key, struct menu *current_item);
296 static void handle_f9(int *key, struct menu *current_item);
301 function_key key; member
310 .key = F_HELP,
316 .key = F_SYMBOL,
322 .key = F_INSTS,
328 .key = F_CONF,
334 .key = F_BACK,
340 .key = F_SAVE,
346 .key = F_LOAD,
352 .key = F_SEARCH,
358 .key = F_EXIT,
386 static void handle_f1(int *key, struct menu *current_item) in handle_f1() argument
394 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
401 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
410 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
426 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
428 *key = KEY_LEFT; in handle_f5()
433 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
440 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
447 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
454 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
461 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
465 if (*key == KEY_RESIZE) { in process_special_keys()
471 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
472 *key == '0' + function_keys[i].key){ in process_special_keys()
473 function_keys[i].handler(key, menu); in process_special_keys()
1019 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1021 char c = (char) key; in do_match()
1024 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1041 } else if (key == KEY_DOWN) { in do_match()
1045 } else if (key == KEY_UP) { in do_match()
1049 } else if (key == KEY_BACKSPACE || key == 127) { in do_match()