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