Changeset 3962 for neercs/trunk


Ignore:
Timestamp:
Nov 19, 2009, 3:19:33 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Don't send input to window while displaying the help screen
File:
1 edited

Legend:

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

    r3954 r3962  
    451451    /* CTRL-A has been pressed before, handle this as a command, except that
    452452       CTRL-A a sends literal CTRL-A */
     453
     454
     455    if (screen_list->help)
     456    {
     457        if (c == CACA_KEY_ESCAPE)
     458        {
     459            screen_list->help = 0;
     460            screen_list->changed = 1;
     461            refresh = 1;
     462        }
     463        else
     464        {
     465            return 0;
     466        }
     467    }
     468
    453469    if (screen_list->command && (c != 'a'))
    454470    {
     
    489505                screen_list->command = 1;
    490506                break;
    491             case CACA_KEY_ESCAPE:
    492                 if (screen_list->help)
    493                 {
    494                     screen_list->help = 0;
    495                     screen_list->changed = 1;
    496                     refresh = 1;
    497                     break;
    498                 }
    499507            default:
    500508                /* CTRL-A a sends literal CTRL-A */
Note: See TracChangeset for help on using the changeset viewer.