Changeset 256
- Timestamp:
- 07/03/07 19:17:14 (1 year ago)
- Files:
-
- trunk/src/cmd4.c (modified) (1 diff)
- trunk/src/ui.c (modified) (4 diffs)
- trunk/src/ui.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/cmd4.c
r254 r256 4147 4147 menu->title = "Options Menu"; 4148 4148 menu->menu_data = option_actions; 4149 menu->flags = MN_CASELESS_TAGS; 4149 4150 menu->cmd_keys = cmd_keys; 4150 4151 menu->count = N_ELEMENTS(option_actions); trunk/src/ui.c
r220 r256 495 495 int n = menu->filter_count; 496 496 497 if (MN_CASELESS_TAGS) 498 key = toupper((unsigned char) key); 499 497 500 if (menu->flags & MN_NO_TAGS) 498 501 { … … 504 507 { 505 508 char c = menu->skin->get_tag(menu, i); 509 510 if ((menu->flags & MN_CASELESS_TAGS) && c) 511 c = toupper((unsigned char) c); 512 506 513 if (c && c == key) 507 514 return i + menu->top; … … 512 519 for (i = 0; menu->selections[i]; i++) 513 520 { 514 if (menu->selections[i] == key) 521 char c = menu->selections[i]; 522 523 if (menu->flags & MN_CASELESS_TAGS) 524 c = toupper((unsigned char) c); 525 526 if (c == key) 515 527 return i; 516 528 } … … 522 534 int oid = menu->object_list ? menu->object_list[i] : i; 523 535 char c = menu->row_funcs->get_tag(menu, oid); 536 537 if ((menu->flags & MN_CASELESS_TAGS) && c) 538 c = toupper((unsigned char) c); 539 524 540 if (c && c == key) 525 541 return i; trunk/src/ui.h
r254 r256 221 221 MN_NO_TAGS = 0x0200, /* No tags -- movement key and mouse browsing only */ 222 222 MN_PVT_TAGS = 0x0400, /* Tags to be generated by the display function */ 223 MN_CASELESS_TAGS = 0x0800, /* Tag selections can be made regardless of the case of the key pressed. - i.e. 'a' activates the line tagges 'A'. */ 223 224 224 225 MN_DBL_TAP = 0x1000, /* double tap for selection; single tap is cursor movement */ … … 234 235 MN_SELECTABLE = 0x0800000, /* Row is permitted to be selected */ 235 236 MN_HIDDEN = 0x1000000 /* Row is hidden, but may be selected via */ 236 /* key-binding. (Useful for lower case alternante)*/237 /* key-binding. */ 237 238 } menu_flags; 238 239
