56 references to Shortcut
System.Windows.Forms (23)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
545s_shortcutsToDisable ??= [(int)Shortcut.CtrlL, (int)Shortcut.CtrlR, (int)Shortcut.CtrlE, (int)Shortcut.CtrlJ];
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2443if ((int)keyData == (int)Shortcut.CtrlA)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (17)
163(int)Shortcut.CtrlZ, (int)Shortcut.CtrlC, (int)Shortcut.CtrlX, 164(int)Shortcut.CtrlV, (int)Shortcut.CtrlA, (int)Shortcut.CtrlL, (int)Shortcut.CtrlR, 165(int)Shortcut.CtrlE, (int)Shortcut.CtrlY, (int)Keys.Control + (int)Keys.Back, 166(int)Shortcut.CtrlDel, (int)Shortcut.ShiftDel, (int)Shortcut.ShiftIns, (int)Shortcut.CtrlJ 200if (k is ((int)Shortcut.CtrlL) // align left 201or ((int)Shortcut.CtrlR) // align right 202or ((int)Shortcut.CtrlE) // align center 203or ((int)Shortcut.CtrlJ)) // align justified
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (1)
166if (lpMsg->message != PInvokeCore.WM_CHAR && Enum.IsDefined((Shortcut)keyCode))
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ShortcutKeysEditorTests.cs (1)
24yield return new object[] { Shortcut.CtrlA };
System.Windows.Forms.Tests (32)
TextBoxBaseTests.cs (32)
5811yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlZ, !shortcutsEnabled }; 5812yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlC, !shortcutsEnabled }; 5813yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlX, !shortcutsEnabled }; 5814yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlV, !shortcutsEnabled }; 5815yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlA, true }; 5816yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlL, !shortcutsEnabled || readOnly }; 5817yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlR, !shortcutsEnabled || readOnly }; 5818yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlE, !shortcutsEnabled || readOnly }; 5819yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlY, !shortcutsEnabled }; 5820yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlDel, !shortcutsEnabled }; 5821yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.ShiftDel, !shortcutsEnabled }; 5822yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.ShiftIns, !shortcutsEnabled }; 5823yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlJ, !shortcutsEnabled || readOnly }; 5825yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlZ | Keys.Shift, !shortcutsEnabled }; 5826yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlC | Keys.Shift, !shortcutsEnabled }; 5827yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlX | Keys.Shift, !shortcutsEnabled }; 5828yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlV | Keys.Shift, !shortcutsEnabled }; 5829yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlA | Keys.Shift, !shortcutsEnabled }; 5830yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlL | Keys.Shift, !shortcutsEnabled }; 5831yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlR | Keys.Shift, !shortcutsEnabled }; 5832yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlE | Keys.Shift, !shortcutsEnabled }; 5833yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlY | Keys.Shift, !shortcutsEnabled }; 5834yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlDel | Keys.Shift, !shortcutsEnabled }; 5835yield return new object[] { shortcutsEnabled, readOnly, (Keys)Shortcut.CtrlJ | Keys.Shift, !shortcutsEnabled }; 5884[InlineData(true, false, (Keys)Shortcut.CtrlA, true, true)] 5885[InlineData(true, false, (Keys)Shortcut.CtrlA, false, true)] 5886[InlineData(false, false, (Keys)Shortcut.CtrlA, true, true)] 5887[InlineData(false, false, (Keys)Shortcut.CtrlA, false, true)] 5888[InlineData(true, true, (Keys)Shortcut.CtrlL, true, true)] 5889[InlineData(true, true, (Keys)Shortcut.CtrlL, false, true)] 5890[InlineData(true, false, (Keys)Shortcut.CtrlL, true, true)] 5891[InlineData(true, false, (Keys)Shortcut.CtrlL, false, false)]