Ignore:
Timestamp:
Jun 19, 2008 9:53:39 AM (6 years ago)
Author:
jylam
Message:
  • Don't send key that closed help window to current terminal
File:
1 edited

Legend:

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

    r2455 r2456  
    211211        /* Get events, if any */ 
    212212        ret = caca_get_event(dp, CACA_EVENT_ANY, &ev, 0); 
     213 
    213214        if(ret && (caca_get_event_type(&ev) & CACA_EVENT_KEY_PRESS)) 
    214215        { 
     
    299300                    write(screen_list->screen[screen_list->pty]->fd, "\x1b[D", 3); break; 
    300301                case CACA_KEY_ESCAPE: 
    301                     if(screen_list->help) screen_list->help = 0; 
     302                    if(screen_list->help) 
     303                    { 
     304                        screen_list->help = 0; 
     305                        refresh = 1; 
     306                        break; 
     307                    } 
    302308                default: 
    303309                    write(screen_list->screen[screen_list->pty]->fd, &c, 1); break; 
Note: See TracChangeset for help on using the changeset viewer.