Changeset 2581 for neercs


Ignore:
Timestamp:
Jul 23, 2008, 11:54:24 PM (12 years ago)
Author:
bsittler
Message:

Ctrl-A a & Ctrl-A ? behaviour

Location:
neercs/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/input.c

    r2495 r2581  
    129129        break;
    130130    case 'h':
     131    case '?':
    131132    case 0x08: //CACA_KEY_CTRL_H:
    132133        screen_list->help = !screen_list->help;
  • neercs/trunk/src/main.c

    r2500 r2581  
    334334            char *str = NULL;
    335335            int size = 0;
    336             /* CTRL-A has been pressed before, handle this as a command */
    337             if(command)
     336            /* CTRL-A has been pressed before, handle this as a
     337             * command, except that CTRL-A a sends literal CTRL-A */
     338            if(command && (c != 'a'))
    338339            {
    339340                command = 0;
     
    371372                        }
    372373                    default:
     374                        /* CTRL-A a sends literal CTRL-A */
     375                        if (command && (c == 'a'))
     376                        {
     377                            c = 0x01;
     378                        }
    373379                        /* Normal key, convert it if needed */
    374380                        str = convert_input_ansi(&c, &size);
Note: See TracChangeset for help on using the changeset viewer.