6 instantiations of KeyEventArgs
PresentationCore (6)
System\Windows\Input\KeyboardDevice.cs (4)
826
KeyEventArgs keyDown = new
KeyEventArgs
(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
881
KeyEventArgs keyUp = new
KeyEventArgs
(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
922
KeyEventArgs previewKeyDown = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
941
KeyEventArgs previewKeyUp = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
System\Windows\InterOp\HwndSource.cs (2)
2402
KeyEventArgs tunnelArgs = new
KeyEventArgs
(Keyboard.PrimaryDevice, this, msg.time, key);
2412
KeyEventArgs bubbleArgs = new
KeyEventArgs
(Keyboard.PrimaryDevice, this, msg.time, key);
196 references to KeyEventArgs
Microsoft.CodeAnalysis.EditorFeatures.Wpf (7)
InlineHints\InlineHintsKeyProcessorProvider.cs (5)
75
private static bool IsAlt(
KeyEventArgs
args)
78
private static bool IsF1(
KeyEventArgs
args)
81
private static bool IsKey(
KeyEventArgs
args, Key key)
100
public override void KeyDown(
KeyEventArgs
args)
118
public override void KeyUp(
KeyEventArgs
args)
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (2)
171
private void Adornment_KeyDown(object sender,
KeyEventArgs
e)
259
private void RenameUserInput_PreviewKeyDown(object sender,
KeyEventArgs
e)
Microsoft.VisualStudio.LanguageServices (3)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
203
private void OnKeyUp(object sender,
KeyEventArgs
e)
PickMembers\PickMembersDialog.xaml.cs (1)
120
private void OnListViewPreviewKeyDown(object sender,
KeyEventArgs
e)
ValueTracking\ValueTrackingTree.xaml.cs (1)
23
private void ValueTrackingTree_PreviewKeyDown(object sender,
KeyEventArgs
e)
PresentationCore (48)
System\Windows\Generated\ContentElement.cs (4)
1651
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1670
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1689
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1708
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Generated\UIElement.cs (8)
1925
private static void OnPreviewKeyDownThunk(object sender,
KeyEventArgs
e)
1950
private static void OnKeyDownThunk(object sender,
KeyEventArgs
e)
1980
private static void OnPreviewKeyUpThunk(object sender,
KeyEventArgs
e)
2005
private static void OnKeyUpThunk(object sender,
KeyEventArgs
e)
3604
protected virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
3623
protected virtual void OnKeyDown(
KeyEventArgs
e) {}
3642
protected virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
3661
protected virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Generated\UIElement3D.cs (4)
1372
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1391
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1410
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1429
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Input\AccessKeyManager.cs (2)
213
OnKeyDown((
KeyEventArgs
)e.StagingItem.Input);
314
private void OnKeyDown(
KeyEventArgs
e)
System\Windows\Input\Command\KeyGesture.cs (2)
180
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
System\Windows\Input\InputManager.cs (1)
220
internal void RaiseTranslateAccelerator(
KeyEventArgs
e)
System\Windows\Input\KeyboardDevice.cs (12)
762
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
786
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
803
KeyEventArgs
previewKeyDown = (
KeyEventArgs
) e.StagingItem.Input;
826
KeyEventArgs
keyDown = new KeyEventArgs(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
858
KeyEventArgs
previewKeyUp = (
KeyEventArgs
) e.StagingItem.Input;
881
KeyEventArgs
keyUp = new KeyEventArgs(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
922
KeyEventArgs
previewKeyDown = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
941
KeyEventArgs
previewKeyUp = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
System\Windows\Input\KeyEventHandler.cs (1)
14
public delegate void KeyEventHandler(object sender,
KeyEventArgs
e);
System\Windows\Input\TextCompositionManager.cs (6)
426
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
467
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
486
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
System\Windows\Input\TextServicesManager.cs (6)
120
KeyEventArgs
keyArgs;
147
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
166
KeyEventArgs
keyArgs;
190
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
208
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
216
private bool TextServicesKeystroke(TextServicesContext context,
KeyEventArgs
keyArgs, bool test)
System\Windows\InterOp\HwndSource.cs (2)
2402
KeyEventArgs
tunnelArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
2412
KeyEventArgs
bubbleArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
PresentationFramework (93)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
333
internal static void KeyDownHelper(
KeyEventArgs
e, DependencyObject findToolBarHost)
System\Windows\Controls\Calendar.cs (3)
832
protected override void OnKeyDown(
KeyEventArgs
e)
840
protected override void OnKeyUp(
KeyEventArgs
e)
1251
private bool ProcessCalendarKey(
KeyEventArgs
e)
System\Windows\Controls\CheckBox.cs (1)
74
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ComboBox.cs (3)
1314
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1326
protected override void OnKeyDown(
KeyEventArgs
e)
1331
private void KeyDownHandler(
KeyEventArgs
e)
System\Windows\Controls\ContextMenu.cs (3)
416
protected override void OnKeyDown(
KeyEventArgs
e)
454
protected override void OnKeyUp(
KeyEventArgs
e)
667
return (e is
KeyEventArgs
) || (e is FindToolTipEventArgs);
System\Windows\Controls\DataGrid.cs (8)
5513
protected override void OnKeyDown(
KeyEventArgs
e)
5579
private void OnArrowKeyDown(
KeyEventArgs
e)
5875
private bool TryDefaultNavigation(
KeyEventArgs
e, ItemInfo currentInfo)
5906
private void OnTabKeyDown(
KeyEventArgs
e)
5978
private void OnEnterKeyDown(
KeyEventArgs
e)
6042
private void SelectAndEditOnFocusMove(
KeyEventArgs
e, DataGridCell oldCell, bool wasEditing, bool allowsExtendSelect, bool ignoreControlKey)
6069
private void OnHomeOrEndKeyDown(
KeyEventArgs
e)
6120
private void OnPageUpOrDownKeyDown(
KeyEventArgs
e)
System\Windows\Controls\DataGridCell.cs (2)
963
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
971
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
216
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
System\Windows\Controls\DataGridComboBoxColumn.cs (2)
601
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
System\Windows\Controls\DataGridHelper.cs (1)
751
public static bool IsImeProcessed(
KeyEventArgs
keyArgs)
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
286
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
System\Windows\Controls\DataGridTextColumn.cs (1)
265
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
System\Windows\Controls\DatePicker.cs (4)
952
KeyEventArgs
args = (
KeyEventArgs
)e;
1155
private bool ProcessDatePickerKey(
KeyEventArgs
e)
1311
private void TextBox_KeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\DocumentViewer.cs (3)
1071
protected override void OnKeyDown(
KeyEventArgs
e)
2259
private
KeyEventArgs
ProcessFindKeys(
KeyEventArgs
e)
System\Windows\Controls\FlowDocumentReader.cs (2)
801
protected override void OnKeyDown(
KeyEventArgs
e)
1626
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
654
protected override void OnKeyDown(
KeyEventArgs
e)
1583
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\GridSplitter.cs (1)
705
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\GridViewColumnHeader.cs (1)
366
internal void OnColumnHeaderKeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1269
private void OnColumnHeadersPresenterKeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\ItemsControl.cs (1)
1699
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ListBox.cs (1)
313
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\Menu.cs (1)
189
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\MenuItem.cs (1)
1884
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\PasswordBox.cs (2)
514
protected override void OnKeyDown(
KeyEventArgs
e)
529
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\PopupControlService.cs (5)
118
ProcessKeyDown(sender, (
KeyEventArgs
)e.StagingItem.Input);
122
ProcessKeyUp(sender, (
KeyEventArgs
)e.StagingItem.Input);
224
private void ProcessKeyDown(object sender,
KeyEventArgs
e)
251
private void ProcessKeyUp(object sender,
KeyEventArgs
e)
957
private void RaiseContextMenuOpeningEvent(
KeyEventArgs
e)
System\Windows\Controls\Primitives\ButtonBase.cs (2)
602
protected override void OnKeyDown(
KeyEventArgs
e)
666
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\Primitives\MenuBase.cs (1)
445
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\Primitives\RepeatButton.cs (2)
308
protected override void OnKeyDown(
KeyEventArgs
e)
321
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1074
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1092
protected override void OnKeyDown(
KeyEventArgs
e)
1110
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\ScrollViewer.cs (2)
923
protected override void OnKeyDown(
KeyEventArgs
e)
1059
internal void ScrollInDirection(
KeyEventArgs
e)
System\Windows\Controls\SinglePageViewer.cs (2)
378
protected override void OnKeyDown(
KeyEventArgs
e)
1364
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\Slider.cs (2)
183
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
System\Windows\Controls\TabControl.cs (1)
414
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ToolBar.cs (1)
643
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\TreeView.cs (2)
512
protected override void OnKeyDown(
KeyEventArgs
e)
703
private bool HandleScrollByPage(
KeyEventArgs
e)
System\Windows\Controls\TreeViewItem.cs (4)
572
protected override void OnKeyDown(
KeyEventArgs
e)
668
internal bool HandleUpKey(
KeyEventArgs
e)
673
internal bool HandleDownKey(
KeyEventArgs
e)
678
private bool HandleUpDownKey(bool up,
KeyEventArgs
e)
System\Windows\Documents\Hyperlink.cs (2)
704
protected internal override void OnKeyDown(
KeyEventArgs
e)
952
private static void OnKeyDown(object sender,
KeyEventArgs
e)
System\windows\Documents\TextEditor.cs (3)
672
internal void OnPreviewKeyDown(
KeyEventArgs
e)
677
internal void OnKeyDown(
KeyEventArgs
e)
682
internal void OnKeyUp(
KeyEventArgs
e)
System\windows\Documents\TextEditorTyping.cs (3)
246
internal static void OnPreviewKeyDown(object sender,
KeyEventArgs
e)
290
internal static void OnKeyDown(object sender,
KeyEventArgs
e)
336
internal static void OnKeyUp(object sender,
KeyEventArgs
e)
System\Windows\Input\KeyboardNavigation.cs (8)
1175
private void TranslateAccelerator(object sender,
KeyEventArgs
e)
1191
KeyEventArgs
keyEventArgs = (
KeyEventArgs
)inputEventArgs;
3183
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3212
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3260
private Key GetRealKey(
KeyEventArgs
e)
System\Windows\Interop\HwndHost.cs (2)
135
protected override void OnKeyUp(
KeyEventArgs
e)
169
protected override void OnKeyDown(
KeyEventArgs
e)
PresentationUI (5)
MS\Internal\Documents\Application\PageTextBox.cs (1)
194
private void OnPreviewKeyDown(object sender,
KeyEventArgs
e)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
256
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
596
protected override void OnKeyDown(
KeyEventArgs
e)
1247
private void MenuPreviewKeyDown(object sender,
KeyEventArgs
e)
MS\Internal\Documents\FindToolBar.xaml.cs (1)
248
private void OnFindTextBoxPreviewKeyDown(object sender,
KeyEventArgs
e)
System.Windows.Controls.Ribbon (40)
Microsoft\Windows\Controls\KeyTipService.cs (11)
633
private static bool IsKeyTipKey(
KeyEventArgs
e)
643
private static bool IsKeyTipClosingKey(
KeyEventArgs
e)
692
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
710
OnPreviewKeyDown((
KeyEventArgs
)e.StagingItem.Input);
723
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
738
private void OnPreviewKeyDown(
KeyEventArgs
keyArgs)
754
private void OnKeyTipKeyDown(
KeyEventArgs
keyArgs)
773
private void OnPreviewKeyTipKeyUp(
KeyEventArgs
keyArgs)
814
private void OnEscapeKeyDown(
KeyEventArgs
keyArgs)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1868
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
439
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
230
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
243
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
925
protected override void OnKeyDown(
KeyEventArgs
e)
1005
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1209
protected override void OnKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
161
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
2668
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
2679
internal void OnNavigationKeyDown(
KeyEventArgs
e, DependencyObject focusedElement)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
414
protected override void OnKeyDown(
KeyEventArgs
e)
447
protected override void OnKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1457
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1256
object sender,
KeyEventArgs
e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue)
2440
public static void OnApplicationMenuItemUpDownKeyDown(
KeyEventArgs
e, RibbonMenuItem menuItem)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
731
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
750
protected override void OnKeyUp(
KeyEventArgs
e)
770
protected override void OnKeyDown(
KeyEventArgs
e)
788
internal void OnNavigationKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
800
protected override void OnKeyDown(
KeyEventArgs
e)
956
protected override void OnPreviewKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
421
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
184
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
372
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
345
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
148
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (3)
38
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
43
private void ProcessKeyDown(object sender,
KeyEventArgs
e)