mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Implement the support for shortcut key
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user