MCPcopy Create free account
hub / github.com/Entware/Entware / process_special_keys

Function process_special_keys

scripts/config/nconf.c:472–490  ·  view source on GitHub ↗

return != 0 to indicate the key was handles */

Source from the content-addressed store, hash-verified

470
471/* return != 0 to indicate the key was handles */
472static 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
492static void clean_items(void)
493{

Callers 2

selected_confFunction · 0.85
conf_choiceFunction · 0.85

Calls 1

setup_windowsFunction · 0.85

Tested by

no test coverage detected