- exit_err(toggle_window(win_meta, win_log), world, err_toggle);
- }
- else if (key == get_action_key(world->keybindings, "cycle forwards"))
- {
- cycle_active_win(win_meta, 'f');
- }
- else if (key == get_action_key(world->keybindings, "cycle backwards"))
- {
- cycle_active_win(win_meta, 'p');
- }
- else if (key == get_action_key(world->keybindings, "shift forwards"))
- {
- exit_err(shift_active_win(win_meta, 'f'), world, err_shift);
- }
- else if (key == get_action_key(world->keybindings, "shift backwards"))
- {
- exit_err(shift_active_win(win_meta, 'b'), world, err_shift);
- }
- else if (key == get_action_key(world->keybindings, "grow horizontally"))
- {
- exit_err(growshrink_active_window(win_meta, '*'), world, err_resize);
- }
- else if (key == get_action_key(world->keybindings, "shrink horizontally"))
- {
- exit_err(growshrink_active_window(win_meta, '_'), world, err_resize);
- }
- else if (key == get_action_key(world->keybindings, "grow vertically"))
- {
- exit_err(growshrink_active_window(win_meta, '+'), world, err_resize);
- }
- else if (key == get_action_key(world->keybindings, "shrink vertically"))
- {
- exit_err(growshrink_active_window(win_meta, '-'), world, err_resize);
- }
- else if (key == get_action_key(world->keybindings, "save keys"))
- {
- save_keybindings(world);
- }
- else if (key == get_action_key(world->keybindings, "keys nav up"))
- {
- keyswin_move_selection (world, 'u');
- }
- else if (key == get_action_key(world->keybindings, "keys nav down"))
- {
- keyswin_move_selection (world, 'd');
- }
- else if (key == get_action_key(world->keybindings, "keys mod"))
- {
- keyswin_mod_key (world, win_meta);
- }
- else if (key == get_action_key(world->keybindings, "map up"))
- {
- map_scroll (world->map, NORTH, win_map->frame.size);
- }
- else if (key == get_action_key(world->keybindings, "map down"))
- {
- map_scroll (world->map, SOUTH, win_map->frame.size);
- }
- else if (key == get_action_key(world->keybindings, "map right"))
- {
- map_scroll (world->map, EAST, win_map->frame.size);