bindings: allow for binding multiple chains to one key

This commit is contained in:
Andrzej Rybczak
2014-08-27 01:15:28 +02:00
parent afd5c22acf
commit a7f3992c97
5 changed files with 36 additions and 53 deletions

View File

@@ -256,9 +256,7 @@ int main(int argc, char **argv)
try
{
auto k = Bindings.get(input);
for (; k.first != k.second; ++k.first)
if (k.first->execute())
break;
std::any_of(k.first, k.second, boost::bind(&Binding::execute, _1));
}
catch (ConversionError &e)
{