initial support for binding keys to action chains

This commit is contained in:
Andrzej Rybczak
2012-08-25 04:44:02 +02:00
parent 3a023e40c0
commit 55ae5b1816
6 changed files with 194 additions and 145 deletions

View File

@@ -80,9 +80,9 @@ std::string Help::DisplayKeys(const ActionType at)
{
bool print_backspace = true;
std::string result;
for (std::multimap<Action::Key, Action *>::const_iterator it = Keys.Bindings.begin(); it != Keys.Bindings.end(); ++it)
for (std::multimap<Action::Key, Bind>::const_iterator it = Keys.Bindings.begin(); it != Keys.Bindings.end(); ++it)
{
if (it->second->Type() == at)
if (it->second.isSingle() && it->second.getAction()->Type() == at)
{
result += IntoStr(it->first, &print_backspace);
result += " ";