Starting to add shortcut keys

This commit is contained in:
Michael Becker 2014-06-24 15:55:16 -04:00
parent e71c0f0e3c
commit 437272f0f4
2 changed files with 73 additions and 0 deletions

View File

@ -34,6 +34,9 @@ namespace UniversalEditor.UserInterface
/// The title of the command (including mnemonic prefix, if applicable).
/// </summary>
public string Title { get { return mvarTitle; } set { mvarTitle = value; } }
private CommandShortcutKey mvarShortcutKey = new CommandShortcutKey();
public CommandShortcutKey ShortcutKey { get { return mvarShortcutKey; } }
private StockCommandType mvarStockCommandType = StockCommandType.None;
/// <summary>

View File

@ -0,0 +1,70 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.UserInterface
{
public enum CommandShortcutKeyModifiers
{
None = 0,
Control = 1,
Shift = 2,
Alt = 4,
Meta = 8
}
public enum CommandShortcutKeyValue
{
TopRow0,
TopRow1,
TopRow2,
TopRow3,
TopRow4,
TopRow5,
TopRow6,
TopRow7,
TopRow8,
TopRow9,
A,
B,
C,
D,
E,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
NumPad0,
NumPad1,
NumPad2,
NumPad3,
NumPad4,
NumPad5,
NumPad6,
NumPad7,
NumPad8,
NumPad9
}
public class CommandShortcutKey
{
private CommandShortcutKeyModifiers mvarModifiers = CommandShortcutKeyModifiers.None;
public CommandShortcutKeyModifiers Modifiers { get { return mvarModifiers; } set { mvarModifiers = value; } }
}
}