- ActionMap::const_iterator i = actions.lower_bound(ActionKey(kwd, string()));
- return i!=actions.end() && i->first.keyword==kwd;
+ ActionMap::const_iterator i = actions.lower_bound(ActionKey(key.keyword, string()));
+ for(; (i!=actions.end() && i->first.keyword==key.keyword); ++i)
+ if(signature_match(key.signature, i->first.signature))
+ return true;
+ return false;