27 writes to ShortcutKeys
DesignSurface (7)
MainForm.Designer.cs (7)
191this.ToolStripMenuItemUnDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); 199this.ToolStripMenuItemReDo.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); 214this.ToolStripMenuItemCut.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X))); 224this.ToolStripMenuItemCopy.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C))); 234this.ToolStripMenuItemPaste.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V))); 242this.ToolStripMenuItemDelete.ShortcutKeys = System.Windows.Forms.Keys.Delete; 250this.ToolStripMenuItemKeyInvokeSmartTag.ShortcutKeys = System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.Shift | System.Windows.Forms.Keys.F10;
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
105ShortcutKeys = shortcutKeys; 524menuItem.ShortcutKeys = ShortcutKeys;
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
70_system.ShortcutKeys = Keys.Alt | Keys.OemMinus;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
162menuItem.ShortcutKeys = shortcut;
System.Windows.Forms.Tests (4)
System\Windows\Forms\ToolStripMenuItemTests.cs (4)
131item.ShortcutKeys = keys; 143Assert.Throws<InvalidEnumArgumentException>(() => item.ShortcutKeys = keys); 157item.ShortcutKeys = Keys.Control | Keys.Shift | Keys.K; 298ShortcutKeys = Keys.Control | Keys.A,
TestPassApp (9)
Menu_Toolbars_controls.Designer.cs (9)
167newToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N; 176openToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.O; 190saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S; 210printToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.P; 244undoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Z; 251redoToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.Y; 265cutToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.X; 274copyToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.C; 283pasteToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.V;
WinFormsControlsTest (3)
MenuStripAndCheckedListBox.Designer.cs (3)
97this.newToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); 105this.openToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); 231this.uncheckedCheckOnClickToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
12 references to ShortcutKeys
System.Windows.Forms (7)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (6)
368Keys originalShortcut = ShortcutKeys; 524menuItem.ShortcutKeys = ShortcutKeys; 569Keys shortcut = ShortcutKeys; 742_cachedShortcutText ??= ShortcutToText(ShortcutKeys, ShortcutKeyDisplayString); 920Keys shortcut = ShortcutKeys; 1037if (Enabled && ShortcutKeys == keyData && !HasDropDownItems)
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
18if (Visible && ShortcutKeys == keyData)
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripMenuItemTests.cs (5)
87Assert.Equal(Keys.None, item.ShortcutKeys); 132Assert.Equal(keys, item.ShortcutKeys); 235item.ShortcutKeys.Should().Be(shortcutKeys); 343clone.ShortcutKeys.Should().Be(original.ShortcutKeys);