137 references to A
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2929
if (!returnedValue && keyData == (Keys.Control | Keys.
A
))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
10084
case Keys.
A
:
15699
case Keys.
A
:
24517
case Keys.
A
:
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
277
case Keys.
A
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2903
case Keys.
A
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
197
case Keys.
A
:
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
692
if (!returnValue && ShortcutsEnabled && (keyData == (Keys.Control | Keys.
A
)))
System\Windows\Forms\Shortcut.cs (2)
19
CtrlA = Keys.Control + Keys.
A
,
149
CtrlShiftA = Keys.Control + Keys.Shift + Keys.
A
,
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
21
Keys.
A
, Keys.B, Keys.C, Keys.D, Keys.D0, Keys.D1, Keys.D2, Keys.D3, Keys.D4, Keys.D5, Keys.D6, Keys.D7,
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1109
if (e.KeyCode == Keys.
A
&& (e.KeyData & Keys.Control) != 0)
System.Windows.Forms.Tests (125)
System\Windows\Forms\ControlTests.Methods.cs (39)
4362
yield return new object[] { Keys.
A
, false };
4392
yield return new object[] { Keys.Control | Keys.
A
, false };
4422
yield return new object[] { Keys.Alt | Keys.
A
, false };
5260
yield return new object[] { 0, Keys.
A
, false };
5266
yield return new object[] { (int)PInvokeCore.WM_KEYDOWN, Keys.
A
, false };
5272
yield return new object[] { (int)PInvokeCore.WM_SYSKEYDOWN, Keys.
A
, false };
5278
yield return new object[] { (int)PInvokeCore.WM_KEYUP, Keys.
A
, false };
5284
yield return new object[] { (int)PInvokeCore.WM_SYSKEYUP, Keys.
A
, false };
5290
yield return new object[] { (int)PInvokeCore.WM_CHAR, Keys.
A
, true };
5296
yield return new object[] { (int)PInvokeCore.WM_SYSCHAR, Keys.
A
, false };
5302
yield return new object[] { (int)PInvokeCore.WM_KEYUP, Keys.
A
, false };
5308
yield return new object[] { (int)PInvokeCore.WM_SYSKEYUP, Keys.
A
, false };
5349
yield return new object[] { 0, Keys.
A
, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5355
yield return new object[] { (int)PInvokeCore.WM_KEYDOWN, Keys.
A
, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5356
yield return new object[] { (int)PInvokeCore.WM_KEYDOWN, Keys.
A
, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5357
yield return new object[] { (int)PInvokeCore.WM_KEYDOWN, Keys.
A
, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5358
yield return new object[] { (int)PInvokeCore.WM_KEYDOWN, Keys.
A
, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
5364
yield return new object[] { (int)PInvokeCore.WM_SYSKEYDOWN, Keys.
A
, true, false, false, false, false, true, 1, 0, 0, 0, 0 };
5365
yield return new object[] { (int)PInvokeCore.WM_SYSKEYDOWN, Keys.
A
, false, true, false, false, false, false, 1, 1, 0, 0, 0 };
5366
yield return new object[] { (int)PInvokeCore.WM_SYSKEYDOWN, Keys.
A
, false, false, true, false, false, true, 1, 1, 1, 0, 0 };
5367
yield return new object[] { (int)PInvokeCore.WM_SYSKEYDOWN, Keys.
A
, false, false, false, false, false, false, 1, 1, 1, 0, 0 };
5373
yield return new object[] { (int)PInvokeCore.WM_CHAR, Keys.
A
, false, false, false, true, false, false, 0, 0, 0, 1, 0 };
5374
yield return new object[] { (int)PInvokeCore.WM_CHAR, Keys.
A
, false, false, false, true, true, false, 0, 0, 0, 1, 0 };
5375
yield return new object[] { (int)PInvokeCore.WM_CHAR, Keys.
A
, false, false, false, false, true, true, 0, 0, 0, 1, 1 };
5376
yield return new object[] { (int)PInvokeCore.WM_CHAR, Keys.
A
, false, false, false, false, false, false, 0, 0, 0, 1, 1 };
5382
yield return new object[] { (int)PInvokeCore.WM_SYSCHAR, Keys.
A
, false, false, false, true, false, false, 0, 0, 0, 0, 1 };
5383
yield return new object[] { (int)PInvokeCore.WM_SYSCHAR, Keys.
A
, false, false, false, true, true, true, 0, 0, 0, 0, 1 };
5384
yield return new object[] { (int)PInvokeCore.WM_SYSCHAR, Keys.
A
, false, false, false, false, true, true, 0, 0, 0, 0, 1 };
5385
yield return new object[] { (int)PInvokeCore.WM_SYSCHAR, Keys.
A
, false, false, false, false, false, false, 0, 0, 0, 0, 1 };
5388
yield return new object[] { (int)PInvokeCore.WM_KEYUP, Keys.
A
, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5391
yield return new object[] { (int)PInvokeCore.WM_SYSKEYUP, Keys.
A
, false, false, false, false, false, false, 0, 0, 0, 0, 0 };
5496
[InlineData(Keys.
A
)]
5506
[InlineData(Keys.
A
)]
5520
[InlineData(Keys.
A
, true)]
5521
[InlineData(Keys.
A
, false)]
5598
[InlineData(Keys.
A
)]
5607
[InlineData(Keys.
A
)]
5620
[InlineData(Keys.
A
, true)]
5621
[InlineData(Keys.
A
, false)]
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
1044
yield return new object[] { RightToLeft.Yes, valueChanged, multiline, acceptsReturn, Keys.
A
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1045
yield return new object[] { RightToLeft.No, valueChanged, multiline, acceptsReturn, Keys.
A
, dataGridViewWantsInputKey, !dataGridViewWantsInputKey };
1518
foreach (IntPtr wParam in new IntPtr[] { (IntPtr)Keys.Enter, (IntPtr)Keys.LineFeed, (IntPtr)Keys.
A
, 2 })
System\Windows\Forms\KeyEventArgsTests.cs (7)
12
[InlineData(Keys.
A
)]
13
[InlineData(Keys.Control | Keys.
A
)]
14
[InlineData(Keys.Alt | Keys.
A
)]
15
[InlineData(Keys.Shift | Keys.
A
)]
19
[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
)]
51
KeyEventArgs e = new(Keys.
A
)
65
KeyEventArgs e = new(Keys.
A
)
System\Windows\Forms\KeysConverterTests.cs (4)
15
[InlineData("Ctrl+Alt+Shift+A", Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
)]
34
[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
, "Ctrl+Alt+Shift+A")]
51
yield return new object[] { "ru-RU", Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
, new Enum[] { Keys.Control, Keys.Alt, Keys.Shift, Keys.
A
} };
System\Windows\Forms\LabelTests.cs (2)
751
KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.
A
);
773
KeyEventArgs keyEventArgs = new KeyEventArgs(Keys.
A
);
System\Windows\Forms\ListControlTests.cs (1)
2099
[InlineData(Keys.
A
, false)]
System\Windows\Forms\MenuStripTests.cs (4)
682
[InlineData(Keys.
A
)]
692
[InlineData(Keys.
A
)]
710
[InlineData(Keys.
A
, true)]
711
[InlineData(Keys.
A
, false)]
System\Windows\Forms\PreviewKeyDownEventArgsTests.cs (6)
12
[InlineData(Keys.
A
)]
13
[InlineData(Keys.Control | Keys.
A
)]
14
[InlineData(Keys.Alt | Keys.
A
)]
15
[InlineData(Keys.Shift | Keys.
A
)]
19
[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
)]
50
PreviewKeyDownEventArgs e = new(Keys.
A
)
System\Windows\Forms\SendKeysTests.cs (1)
22
Assert.Equal(Keys.
A
, form.KeyEvents[1].KeyCode);
System\Windows\Forms\TabControlTests.cs (3)
3997
yield return new object[] { Keys.
A
, false };
4022
yield return new object[] { Keys.Control | Keys.
A
, false };
4051
yield return new object[] { Keys.Alt | Keys.
A
, false };
System\Windows\Forms\ToolStripButtonTests.cs (1)
1672
[InlineData(Keys.
A
)]
System\Windows\Forms\ToolStripControlHostTests.cs (10)
4067
c.OnKeyDown(new KeyEventArgs(Keys.
A
));
4073
c.OnKeyUp(new KeyEventArgs(Keys.
A
));
4195
[InlineData(Keys.
A
)]
4209
[InlineData(Keys.
A
, true)]
4210
[InlineData(Keys.
A
, false)]
4236
[InlineData(Keys.
A
)]
4252
[InlineData(Keys.
A
)]
4269
[InlineData(Keys.
A
, true)]
4270
[InlineData(Keys.
A
, false)]
4296
[InlineData(Keys.
A
)]
System\Windows\Forms\ToolStripItemTests.cs (3)
10359
[InlineData(Keys.
A
)]
13948
[InlineData(Keys.
A
)]
14040
[InlineData(Keys.
A
)]
System\Windows\Forms\ToolStripMenuItemTests.cs (4)
126
[InlineData(Keys.Control | Keys.Alt | Keys.Shift | Keys.
A
)]
136
[InlineData(Keys.
A
)]
226
Keys shortcutKeys = Keys.Control | Keys.
A
;
297
ShortcutKeys = Keys.Control | Keys.
A
,
System\Windows\Forms\ToolStripTests.cs (4)
6904
[InlineData(Keys.
A
)]
6914
[InlineData(Keys.
A
)]
6932
[InlineData(Keys.
A
, true)]
6933
[InlineData(Keys.
A
, false)]
System\Windows\Forms\TreeViewTests.cs (4)
5733
yield return new object[] { new KeyEventArgs(Keys.
A
) };
5765
yield return new object[] { false, true, false, new KeyEventArgs(Keys.
A
), 0, 0, false };
5898
yield return new object[] { true, new KeyEventArgs(Keys.
A
), true };
5903
yield return new object[] { false, new KeyEventArgs(Keys.
A
), false };
System\Windows\Forms\UpDownBaseTests.cs (2)
2359
yield return new object[] { true, userEdit, source, new KeyEventArgs(Keys.
A
), 0, 0, 0, false };
2360
yield return new object[] { false, userEdit, source, new KeyEventArgs(Keys.
A
), 0, 0, 0, false };
TextBoxBaseTests.cs (22)
5208
[InlineData(true, true, true, Keys.
A
, false)]
5239
[InlineData(true, true, true, Keys.
A
, true)]
5811
yield return new object[] { shortcutsEnabled, readOnly, Keys.
A
, false };
5876
[InlineData(Keys.
A
)]
5894
[InlineData(true, false, Keys.
A
, true, true)]
5895
[InlineData(true, false, Keys.
A
, false, false)]
6013
[InlineData(true, Keys.
A
)]
6014
[InlineData(false, Keys.
A
)]
6019
[InlineData(true, Keys.Control | Keys.
A
)]
6020
[InlineData(false, Keys.Control | Keys.
A
)]
6032
[InlineData(true, Keys.
A
)]
6033
[InlineData(false, Keys.
A
)]
6038
[InlineData(true, Keys.Control | Keys.
A
)]
6039
[InlineData(false, Keys.Control | Keys.
A
)]
6053
[InlineData(true, Keys.
A
, Keys.
A
, true)]
6054
[InlineData(false, Keys.
A
, Keys.
A
, false)]
6059
[InlineData(true, Keys.Control | Keys.
A
, Keys.Control | Keys.
A
, true)]
6060
[InlineData(false, Keys.Control | Keys.
A
, Keys.Control | Keys.
A
, false)]
TrackBarTests.cs (1)
2317
[InlineData(Keys.
A
, false)]
WebBrowserBaseTests.cs (4)
802
[InlineData(Keys.
A
)]
811
[InlineData(Keys.
A
)]
827
[InlineData(Keys.
A
, true)]
828
[InlineData(Keys.
A
, false)]