Make long media key macro actions work. (#621)

* Make long media key macro actions work.

* fix: macro key action mapping
This commit is contained in:
László Monda
2018-05-03 00:28:35 +02:00
committed by GitHub
parent 3d9c83f9f4
commit 2286218980
3 changed files with 29 additions and 13 deletions

View File

@@ -67,7 +67,7 @@ export class MacroKeyTabComponent extends MacroBaseComponent implements OnInit {
}
getKeyMacroAction(): KeyMacroAction {
const keyMacroAction = Object.assign(new KeyMacroAction(), this.keypressTab.toKeyAction());
const keyMacroAction = new KeyMacroAction(this.keypressTab.toKeyAction() as any);
keyMacroAction.action = this.getActionType(this.activeTab);
return keyMacroAction;
}