forked from github/server
mapper: selections can do shortcut keys
This commit is contained in:
parent
d0d03c08af
commit
104b64124f
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue