Changeset 277

Show
Ignore:
Timestamp:
07/04/07 18:34:46 (1 year ago)
Author:
ajps
Message:

Get the option-toggling menus working properly with double-tapping.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/cmd4.c

    r274 r277  
    21922192static bool update_option(char key, void *pgdb, int oid) 
    21932193{ 
     2194        /* Ignore arrow events */ 
     2195        if (key == ARROW_LEFT || key == ARROW_RIGHT) 
     2196                return; 
     2197 
    21942198        switch (toupper((unsigned char) key)) 
    21952199        { 
    21962200                case 'Y': 
    2197                 case '6': 
    21982201                { 
    21992202                        op_ptr->opt[oid] = TRUE; 
     
    22022205 
    22032206                case 'N': 
    2204                 case '4': 
    22052207                { 
    22062208                        op_ptr->opt[oid] = FALSE; 
     
    22082210                } 
    22092211 
    2210                 case 'T': 
    2211                 case '5': 
    2212                 case '\n': 
    2213                 case '\r': 
    2214                 case '\xff': 
     2212                case '?': 
     2213                { 
     2214                        show_file(format("option.txt#%s", option_text[oid]), NULL, 0, 0); 
     2215                        break; 
     2216                } 
     2217 
     2218                default: 
    22152219                { 
    22162220                        op_ptr->opt[oid] = !op_ptr->opt[oid]; 
     
    22182222                } 
    22192223 
    2220                 case '?': 
    2221                 { 
    2222                         show_file(format("option.txt#%s", option_text[oid]), NULL, 0, 0); 
    2223                         break; 
    2224                 } 
    22252224        } 
    22262225