33 references to Shortcut
System.Windows.Forms (33)
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2689
if ((int)keyData == (int)
Shortcut
.CtrlA)
winforms\Managed\System\WinForms\Menu.cs (1)
340
if (item.Shortcut == (
Shortcut
)(int)value) return item;
winforms\Managed\System\WinForms\MenuItem.cs (8)
119
public MenuItem(string text, EventHandler onClick,
Shortcut
shortcut) : this(MenuMerge.Add, 0, shortcut, text, onClick, null, null, null) {
153
public MenuItem(MenuMerge mergeType, int mergeOrder,
Shortcut
shortcut,
626
DefaultValue(
Shortcut
.None),
629
public
Shortcut
Shortcut {
635
if (!Enum.IsDefined(typeof(
Shortcut
), value)) {
636
throw new InvalidEnumArgumentException("value", (int)value, typeof(
Shortcut
));
1558
internal
Shortcut
shortcut;
1569
internal MenuItemData(MenuItem baseItem, MenuMerge mergeType, int mergeOrder,
Shortcut
shortcut, bool showShortcut,
winforms\Managed\System\WinForms\RichTextBox.cs (4)
686
shortcutsToDisable = new int[] {(int)
Shortcut
.CtrlL, (int)
Shortcut
.CtrlR, (int)
Shortcut
.CtrlE, (int)
Shortcut
.CtrlJ};
winforms\Managed\System\WinForms\TextBoxBase.cs (17)
194
shortcutsToDisable = new int[] {(int)
Shortcut
.CtrlZ, (int)
Shortcut
.CtrlC, (int)
Shortcut
.CtrlX,
195
(int)
Shortcut
.CtrlV, (int)
Shortcut
.CtrlA, (int)
Shortcut
.CtrlL, (int)
Shortcut
.CtrlR,
196
(int)
Shortcut
.CtrlE, (int)
Shortcut
.CtrlY, (int)Keys.Control + (int)Keys.Back,
197
(int)
Shortcut
.CtrlDel, (int)
Shortcut
.ShiftDel, (int)
Shortcut
.ShiftIns, (int)
Shortcut
.CtrlJ};
227
if (k == (int)
Shortcut
.CtrlL // align left
228
|| k == (int)
Shortcut
.CtrlR // align right
229
|| k == (int)
Shortcut
.CtrlE // align centre
230
|| k == (int)
Shortcut
.CtrlJ) { // align justified
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1846
&& Enum.IsDefined(typeof(
Shortcut
), (
Shortcut
)keyCode)) {