return != 0 to indicate the key was handles */
| 470 | |
| 471 | /* return != 0 to indicate the key was handles */ |
| 472 | static int process_special_keys(int *key, struct menu *menu) |
| 473 | { |
| 474 | int i; |
| 475 | |
| 476 | if (*key == KEY_RESIZE) { |
| 477 | setup_windows(); |
| 478 | return 1; |
| 479 | } |
| 480 | |
| 481 | for (i = 0; i < function_keys_num; i++) { |
| 482 | if (*key == KEY_F(function_keys[i].key) || |
| 483 | *key == '0' + function_keys[i].key){ |
| 484 | function_keys[i].handler(key, menu); |
| 485 | return 1; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | return 0; |
| 490 | } |
| 491 | |
| 492 | static void clean_items(void) |
| 493 | { |
no test coverage detected