Modifiers should be flags, and CommandShortcutKey should be implemented ;)
This commit is contained in:
parent
6ed850767f
commit
8864e69716
@ -5,13 +5,15 @@ using System.Text;
|
||||
|
||||
namespace UniversalEditor.UserInterface
|
||||
{
|
||||
[Flags()]
|
||||
public enum CommandShortcutKeyModifiers
|
||||
{
|
||||
None = 0,
|
||||
Control = 1,
|
||||
Shift = 2,
|
||||
Alt = 4,
|
||||
Meta = 8
|
||||
Meta = 8,
|
||||
Super = 16
|
||||
}
|
||||
public enum CommandShortcutKeyValue
|
||||
{
|
||||
@ -66,5 +68,14 @@ namespace UniversalEditor.UserInterface
|
||||
{
|
||||
private CommandShortcutKeyModifiers mvarModifiers = CommandShortcutKeyModifiers.None;
|
||||
public CommandShortcutKeyModifiers Modifiers { get { return mvarModifiers; } set { mvarModifiers = value; } }
|
||||
|
||||
private CommandShortcutKeyValue mvarValue = CommandShortcutKeyValue.None;
|
||||
public CommandShortcutKeyValue Value { get { return mvarValue; } set { mvarValue = value; } }
|
||||
|
||||
public CommandShortcutKey(CommandShortcutKeyValue value, CommandShortcutKeyModifiers modifiers = CommandShortcutKeyModifiers.None)
|
||||
{
|
||||
mvarValue = value;
|
||||
mvarModifiers = modifiers;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user