Flow.Launcher/Flow.Launcher.Infrastructure/UserSettings/PluginHotkey.cs

33 lines
824 B
C#
Raw Permalink Normal View History

2025-07-06 13:06:54 +00:00
using System;
using Flow.Launcher.Plugin;
2020-04-21 09:12:17 +00:00
namespace Flow.Launcher.Infrastructure.UserSettings
2014-03-23 08:20:00 +00:00
{
public class CustomPluginHotkey : BaseModel
2014-03-23 08:20:00 +00:00
{
public string Hotkey { get; set; }
public string ActionKeyword { get; set; }
2025-07-06 13:06:54 +00:00
public CustomPluginHotkey(string hotkey, string actionKeyword)
{
Hotkey = hotkey;
ActionKeyword = actionKeyword;
}
public override bool Equals(object other)
{
if (other is CustomPluginHotkey otherHotkey)
{
return Hotkey == otherHotkey.Hotkey && ActionKeyword == otherHotkey.ActionKeyword;
}
return false;
}
public override int GetHashCode()
{
return HashCode.Combine(Hotkey, ActionKeyword);
}
2014-03-23 08:20:00 +00:00
}
}