+
+
+
+extern uint8_t meta_control(int key)
+{
+ uint8_t ret = (key == get_available_keycode_to_action("quit"));
+ if ( (0 == ret)
+ && ( try_cmd_0args('k', key, "winconf", toggle_winconfig)
+ || try_cmd_0args('k', key, "reload_conf", reload_interface_conf)
+ || try_cmd_0args('k', key, "save_conf", save_interface_conf)
+ || try_cmd_0args('k', key, "map_c", map_center)
+ || try_cmd_1args('k', key, "scrl_r", scroll_pad, '+')
+ || try_cmd_1args('k', key, "scrl_l", scroll_pad, '-')
+ || try_cmd_1args('k', key, "to_a_keywin", toggle_window, 'k')
+ || try_cmd_1args('k', key, "to_g_keywin", toggle_window, '0')
+ || try_cmd_1args('k', key, "to_wg_keywin", toggle_window, '1')
+ || try_cmd_1args('k', key, "to_wk_keywin", toggle_window, '2')
+ || try_cmd_1args('k', key, "to_mapwin", toggle_window, 'm')
+ || try_cmd_1args('k', key, "to_infowin", toggle_window, 'i')
+ || try_cmd_1args('k', key, "to_inv", toggle_window, 'c')
+ || try_cmd_1args('k', key, "to_logwin", toggle_window, 'l')
+ || try_cmd_1args('k', key, "cyc_win_f", wrap_cycle_active_win, 'f')
+ || try_cmd_1args('k', key, "cyc_win_b", wrap_cycle_active_win, 'b')
+ || try_cmd_1args('k', key, "g_keys_m", wrap_mod_selected_keyb, 'G')
+ || try_cmd_1args('k', key, "wg_keys_m", wrap_mod_selected_keyb, 'g')
+ || try_cmd_1args('k', key, "wk_keys_m", wrap_mod_selected_keyb, 'k')
+ || try_cmd_1args('k', key, "inv_u", nav_inventory, 'u')
+ || try_cmd_1args('k', key, "inv_d", nav_inventory, 'd')
+ || try_cmd_1args('k', key, "map_u", map_scroll, 'N')
+ || try_cmd_1args('k', key, "map_d", map_scroll, 'S')
+ || try_cmd_1args('k', key, "map_r", map_scroll, 'E')
+ || try_cmd_1args('k', key, "map_l", map_scroll, 'W')
+ || try_cmd_2args('k', key, "g_keys_u", wrap_mv_kb_mod, 'G', 'u')
+ || try_cmd_2args('k', key, "g_keys_d", wrap_mv_kb_mod, 'G', 'd')
+ || try_cmd_2args('k', key, "wg_keys_u", wrap_mv_kb_mod, 'g', 'u')
+ || try_cmd_2args('k', key, "wg_keys_d", wrap_mv_kb_mod, 'g', 'd')
+ || try_cmd_2args('k', key, "wk_keys_u", wrap_mv_kb_mod, 'k', 'u')
+ || try_cmd_2args('k', key, "wk_keys_d", wrap_mv_kb_mod, 'k', 'd')))
+ {
+ ;
+ }
+ return ret;
+}