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

@@ -261,9 +261,9 @@ void Action::Seek()
Key input = ReadKey(*wFooter);
KeyConfiguration::Binding k = Keys.Bindings.equal_range(input);
// no action?
if (k.first == k.second)
if (k.first == k.second || !k.first->second.isSingle())
break;
Action *a = k.first->second;
Action *a = k.first->second.getAction();
if (dynamic_cast<SeekForward *>(a))
{
if (songpos < Mpd.GetTotalTime())