From 104b64124f9f2d400dbc81b391b0f77d342f72a8 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 31 Dec 2005 13:29:22 +0000 Subject: [PATCH] mapper: selections can do shortcut keys --- src/mapper/map_tools.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mapper/map_tools.c b/src/mapper/map_tools.c index ee05ec940..03526b1ea 100644 --- a/src/mapper/map_tools.c +++ b/src/mapper/map_tools.c @@ -372,6 +372,16 @@ do_selection(selection * sel, const char * title, void (*perform)(selection *, v return current; } break; + default: + s = current->next; + while (s!=current) { + if (tolower(s->str[0])==tolower(input)) { + current = s; + update = true; + } else { + s = s->next; + } + } } } }