Implement the support for shortcut key

This commit is contained in:
Colin Liu
2016-02-12 14:21:12 +08:00
parent e15baeb4a2
commit df85543337
9 changed files with 330 additions and 404 deletions

View File

@@ -25,9 +25,9 @@ namespace Wox.ViewModel
public class RelayCommand : ICommand
{
private Action _action;
private Action<object> _action;
public RelayCommand(Action action)
public RelayCommand(Action<object> action)
{
this._action = action;
}
@@ -43,7 +43,7 @@ namespace Wox.ViewModel
{
if (null != this._action)
{
this._action();
this._action(parameter);
}
}
}