2020-07-11 08:07:28 +08:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Settings.UI.Lib
|
|
|
|
|
{
|
|
|
|
|
public class AppSpecificKeysDataModel : KeysDataModel
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("targetApp")]
|
|
|
|
|
public string TargetApp { get; set; }
|
|
|
|
|
|
2020-10-10 08:58:52 +08:00
|
|
|
|
public new List<string> GetMappedOriginalKeys()
|
2020-07-11 08:07:28 +08:00
|
|
|
|
{
|
2020-10-10 08:58:52 +08:00
|
|
|
|
return base.GetMappedOriginalKeys();
|
2020-07-11 08:07:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
2020-10-10 08:58:52 +08:00
|
|
|
|
public new List<string> GetMappedNewRemapKeys()
|
2020-07-11 08:07:28 +08:00
|
|
|
|
{
|
2020-10-10 08:58:52 +08:00
|
|
|
|
return base.GetMappedNewRemapKeys();
|
2020-07-11 08:07:28 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool Compare(AppSpecificKeysDataModel arg)
|
|
|
|
|
{
|
|
|
|
|
return OriginalKeys.Equals(arg.OriginalKeys) && NewRemapKeys.Equals(arg.NewRemapKeys) && TargetApp.Equals(arg.TargetApp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|