2019-11-27 22:51:38 +01:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
|
|
|
// Licensed under the MIT license.
|
2021-03-31 18:38:25 +02:00
|
|
|
#include "../TerminalSettingsModel/AllShortcutActions.h"
|
2019-11-27 22:51:38 +01:00
|
|
|
|
2021-03-30 18:08:03 +02:00
|
|
|
#define ACTION_EVENT(name) event Windows.Foundation.TypedEventHandler<ShortcutActionDispatch, Microsoft.Terminal.Settings.Model.ActionEventArgs> name
|
|
|
|
|
2019-11-27 22:51:38 +01:00
|
|
|
namespace TerminalApp
|
|
|
|
{
|
|
|
|
[default_interface] runtimeclass ShortcutActionDispatch {
|
|
|
|
ShortcutActionDispatch();
|
|
|
|
|
2020-10-06 18:56:59 +02:00
|
|
|
Boolean DoAction(Microsoft.Terminal.Settings.Model.ActionAndArgs actionAndArgs);
|
2019-11-27 22:51:38 +01:00
|
|
|
|
2021-03-31 18:38:25 +02:00
|
|
|
// When adding a new action, add them to AllShortcutActions.h!
|
|
|
|
#define ON_ALL_ACTIONS(action) ACTION_EVENT(action);
|
|
|
|
ALL_SHORTCUT_ACTIONS
|
|
|
|
#undef ON_ALL_ACTIONS
|
2021-03-30 18:08:03 +02:00
|
|
|
|
2019-11-27 22:51:38 +01:00
|
|
|
}
|
|
|
|
}
|