6 instantiations of KeyEventArgs
PresentationCore (6)
System\Windows\Input\KeyboardDevice.cs (4)
817
KeyEventArgs keyDown = new
KeyEventArgs
(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
872
KeyEventArgs keyUp = new
KeyEventArgs
(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
913
KeyEventArgs previewKeyDown = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
932
KeyEventArgs previewKeyUp = new
KeyEventArgs
(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
System\Windows\InterOp\HwndSource.cs (2)
2379
KeyEventArgs tunnelArgs = new
KeyEventArgs
(Keyboard.PrimaryDevice, this, msg.time, key);
2389
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)
121
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)
1647
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1666
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1685
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1704
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Generated\UIElement.cs (8)
1921
private static void OnPreviewKeyDownThunk(object sender,
KeyEventArgs
e)
1946
private static void OnKeyDownThunk(object sender,
KeyEventArgs
e)
1976
private static void OnPreviewKeyUpThunk(object sender,
KeyEventArgs
e)
2001
private static void OnKeyUpThunk(object sender,
KeyEventArgs
e)
3600
protected virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
3619
protected virtual void OnKeyDown(
KeyEventArgs
e) {}
3638
protected virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
3657
protected virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Generated\UIElement3D.cs (4)
1366
protected internal virtual void OnPreviewKeyDown(
KeyEventArgs
e) {}
1385
protected internal virtual void OnKeyDown(
KeyEventArgs
e) {}
1404
protected internal virtual void OnPreviewKeyUp(
KeyEventArgs
e) {}
1423
protected internal virtual void OnKeyUp(
KeyEventArgs
e) {}
System\Windows\Input\AccessKeyManager.cs (2)
201
OnKeyDown((
KeyEventArgs
)e.StagingItem.Input);
302
private void OnKeyDown(
KeyEventArgs
e)
System\Windows\Input\Command\KeyGesture.cs (2)
177
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
System\Windows\Input\InputManager.cs (1)
212
internal void RaiseTranslateAccelerator(
KeyEventArgs
e)
System\Windows\Input\KeyboardDevice.cs (12)
753
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
777
KeyEventArgs
args = (
KeyEventArgs
) e.StagingItem.Input;
794
KeyEventArgs
previewKeyDown = (
KeyEventArgs
) e.StagingItem.Input;
817
KeyEventArgs
keyDown = new KeyEventArgs(this, previewKeyDown.UnsafeInputSource, previewKeyDown.Timestamp, key);
849
KeyEventArgs
previewKeyUp = (
KeyEventArgs
) e.StagingItem.Input;
872
KeyEventArgs
keyUp = new KeyEventArgs(this, previewKeyUp.UnsafeInputSource, previewKeyUp.Timestamp, key);
913
KeyEventArgs
previewKeyDown = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
932
KeyEventArgs
previewKeyUp = new KeyEventArgs(this, keyboardInput.InputSource, keyboardInput.Timestamp, key);
System\Windows\Input\KeyEventHandler.cs (1)
11
public delegate void KeyEventHandler(object sender,
KeyEventArgs
e);
System\Windows\Input\TextCompositionManager.cs (6)
410
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
451
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
470
KeyEventArgs
keyArgs = (
KeyEventArgs
) e.StagingItem.Input;
System\Windows\Input\TextServicesManager.cs (6)
117
KeyEventArgs
keyArgs;
144
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
163
KeyEventArgs
keyArgs;
187
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
205
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
213
private bool TextServicesKeystroke(TextServicesContext context,
KeyEventArgs
keyArgs, bool test)
System\Windows\InterOp\HwndSource.cs (2)
2379
KeyEventArgs
tunnelArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
2389
KeyEventArgs
bubbleArgs = new KeyEventArgs(Keyboard.PrimaryDevice, this, msg.time, key);
PresentationFramework (93)
MS\Internal\Documents\DocumentViewerHelper.cs (1)
331
internal static void KeyDownHelper(
KeyEventArgs
e, DependencyObject findToolBarHost)
System\Windows\Controls\Calendar.cs (3)
828
protected override void OnKeyDown(
KeyEventArgs
e)
836
protected override void OnKeyUp(
KeyEventArgs
e)
1247
private bool ProcessCalendarKey(
KeyEventArgs
e)
System\Windows\Controls\CheckBox.cs (1)
66
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ComboBox.cs (3)
1304
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1316
protected override void OnKeyDown(
KeyEventArgs
e)
1321
private void KeyDownHandler(
KeyEventArgs
e)
System\Windows\Controls\ContextMenu.cs (3)
408
protected override void OnKeyDown(
KeyEventArgs
e)
446
protected override void OnKeyUp(
KeyEventArgs
e)
659
return (e is
KeyEventArgs
) || (e is FindToolTipEventArgs);
System\Windows\Controls\DataGrid.cs (8)
5510
protected override void OnKeyDown(
KeyEventArgs
e)
5576
private void OnArrowKeyDown(
KeyEventArgs
e)
5872
private bool TryDefaultNavigation(
KeyEventArgs
e, ItemInfo currentInfo)
5903
private void OnTabKeyDown(
KeyEventArgs
e)
5975
private void OnEnterKeyDown(
KeyEventArgs
e)
6039
private void SelectAndEditOnFocusMove(
KeyEventArgs
e, DataGridCell oldCell, bool wasEditing, bool allowsExtendSelect, bool ignoreControlKey)
6066
private void OnHomeOrEndKeyDown(
KeyEventArgs
e)
6117
private void OnPageUpOrDownKeyDown(
KeyEventArgs
e)
System\Windows\Controls\DataGridCell.cs (2)
956
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
964
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
212
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
System\Windows\Controls\DataGridComboBoxColumn.cs (2)
597
KeyEventArgs
keyArgs = e as
KeyEventArgs
;
System\Windows\Controls\DataGridHelper.cs (1)
745
public static bool IsImeProcessed(
KeyEventArgs
keyArgs)
System\Windows\Controls\DataGridHyperlinkColumn.cs (1)
280
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
System\Windows\Controls\DataGridTextColumn.cs (1)
262
else if (DataGridHelper.IsImeProcessed(e as
KeyEventArgs
))
System\Windows\Controls\DatePicker.cs (4)
948
KeyEventArgs
args = (
KeyEventArgs
)e;
1151
private bool ProcessDatePickerKey(
KeyEventArgs
e)
1307
private void TextBox_KeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\DocumentViewer.cs (3)
1059
protected override void OnKeyDown(
KeyEventArgs
e)
2247
private
KeyEventArgs
ProcessFindKeys(
KeyEventArgs
e)
System\Windows\Controls\FlowDocumentReader.cs (2)
796
protected override void OnKeyDown(
KeyEventArgs
e)
1621
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
651
protected override void OnKeyDown(
KeyEventArgs
e)
1580
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\GridSplitter.cs (1)
699
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\GridViewColumnHeader.cs (1)
362
internal void OnColumnHeaderKeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1266
private void OnColumnHeadersPresenterKeyDown(object sender,
KeyEventArgs
e)
System\Windows\Controls\ItemsControl.cs (1)
1690
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ListBox.cs (1)
307
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\Menu.cs (1)
179
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\MenuItem.cs (1)
1874
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\PasswordBox.cs (2)
506
protected override void OnKeyDown(
KeyEventArgs
e)
521
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\PopupControlService.cs (5)
108
ProcessKeyDown(sender, (
KeyEventArgs
)e.StagingItem.Input);
112
ProcessKeyUp(sender, (
KeyEventArgs
)e.StagingItem.Input);
214
private void ProcessKeyDown(object sender,
KeyEventArgs
e)
241
private void ProcessKeyUp(object sender,
KeyEventArgs
e)
947
private void RaiseContextMenuOpeningEvent(
KeyEventArgs
e)
System\Windows\Controls\Primitives\ButtonBase.cs (2)
591
protected override void OnKeyDown(
KeyEventArgs
e)
655
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\Primitives\MenuBase.cs (1)
436
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\Primitives\RepeatButton.cs (2)
299
protected override void OnKeyDown(
KeyEventArgs
e)
312
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1065
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1083
protected override void OnKeyDown(
KeyEventArgs
e)
1101
protected override void OnKeyUp(
KeyEventArgs
e)
System\Windows\Controls\ScrollViewer.cs (2)
915
protected override void OnKeyDown(
KeyEventArgs
e)
1051
internal void ScrollInDirection(
KeyEventArgs
e)
System\Windows\Controls\SinglePageViewer.cs (2)
375
protected override void OnKeyDown(
KeyEventArgs
e)
1361
private static void KeyDownHandler(object sender,
KeyEventArgs
e)
System\Windows\Controls\Slider.cs (2)
172
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
System\Windows\Controls\TabControl.cs (1)
404
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\ToolBar.cs (1)
634
protected override void OnKeyDown(
KeyEventArgs
e)
System\Windows\Controls\TreeView.cs (2)
507
protected override void OnKeyDown(
KeyEventArgs
e)
698
private bool HandleScrollByPage(
KeyEventArgs
e)
System\Windows\Controls\TreeViewItem.cs (4)
568
protected override void OnKeyDown(
KeyEventArgs
e)
664
internal bool HandleUpKey(
KeyEventArgs
e)
669
internal bool HandleDownKey(
KeyEventArgs
e)
674
private bool HandleUpDownKey(bool up,
KeyEventArgs
e)
System\Windows\Documents\Hyperlink.cs (2)
698
protected internal override void OnKeyDown(
KeyEventArgs
e)
946
private static void OnKeyDown(object sender,
KeyEventArgs
e)
System\windows\Documents\TextEditor.cs (3)
666
internal void OnPreviewKeyDown(
KeyEventArgs
e)
671
internal void OnKeyDown(
KeyEventArgs
e)
676
internal void OnKeyUp(
KeyEventArgs
e)
System\windows\Documents\TextEditorTyping.cs (3)
237
internal static void OnPreviewKeyDown(object sender,
KeyEventArgs
e)
281
internal static void OnKeyDown(object sender,
KeyEventArgs
e)
327
internal static void OnKeyUp(object sender,
KeyEventArgs
e)
System\Windows\Input\KeyboardNavigation.cs (8)
1165
private void TranslateAccelerator(object sender,
KeyEventArgs
e)
1181
KeyEventArgs
keyEventArgs = (
KeyEventArgs
)inputEventArgs;
3173
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3202
KeyEventArgs
keyEventArgs = inputEventArgs as
KeyEventArgs
;
3250
private Key GetRealKey(
KeyEventArgs
e)
System\Windows\Interop\HwndHost.cs (2)
133
protected override void OnKeyUp(
KeyEventArgs
e)
167
protected override void OnKeyDown(
KeyEventArgs
e)
PresentationUI (5)
MS\Internal\Documents\Application\PageTextBox.cs (1)
192
private void OnPreviewKeyDown(object sender,
KeyEventArgs
e)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
254
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
589
protected override void OnKeyDown(
KeyEventArgs
e)
1240
private void MenuPreviewKeyDown(object sender,
KeyEventArgs
e)
MS\Internal\Documents\FindToolBar.xaml.cs (1)
236
private void OnFindTextBoxPreviewKeyDown(object sender,
KeyEventArgs
e)
System.Windows.Controls.Ribbon (40)
Microsoft\Windows\Controls\KeyTipService.cs (11)
631
private static bool IsKeyTipKey(
KeyEventArgs
e)
641
private static bool IsKeyTipClosingKey(
KeyEventArgs
e)
690
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
708
OnPreviewKeyDown((
KeyEventArgs
)e.StagingItem.Input);
721
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
736
private void OnPreviewKeyDown(
KeyEventArgs
keyArgs)
752
private void OnKeyTipKeyDown(
KeyEventArgs
keyArgs)
771
private void OnPreviewKeyTipKeyUp(
KeyEventArgs
keyArgs)
812
private void OnEscapeKeyDown(
KeyEventArgs
keyArgs)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1865
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
437
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenuItem.cs (1)
227
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonApplicationSplitMenuItem.cs (1)
240
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (3)
923
protected override void OnKeyDown(
KeyEventArgs
e)
1003
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
1207
protected override void OnKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
159
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (2)
2666
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
2677
internal void OnNavigationKeyDown(
KeyEventArgs
e, DependencyObject focusedElement)
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (2)
412
protected override void OnKeyDown(
KeyEventArgs
e)
445
protected override void OnKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (1)
1454
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
1251
object sender,
KeyEventArgs
e, Func<bool> gettor, Action<bool> settor, UIElement targetFocusOnFalse, UIElement targetFocusContainerOnTrue)
2435
public static void OnApplicationMenuItemUpDownKeyDown(
KeyEventArgs
e, RibbonMenuItem menuItem)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (4)
728
protected override void OnPreviewKeyDown(
KeyEventArgs
e)
747
protected override void OnKeyUp(
KeyEventArgs
e)
767
protected override void OnKeyDown(
KeyEventArgs
e)
785
internal void OnNavigationKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (2)
797
protected override void OnKeyDown(
KeyEventArgs
e)
953
protected override void OnPreviewKeyUp(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonQuickAccessToolBar.cs (1)
416
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
181
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
370
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (1)
343
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
146
protected override void OnKeyDown(
KeyEventArgs
e)
Microsoft\Windows\Controls\Ribbon\RibbonToolTipService.cs (3)
37
KeyEventArgs
keyArgs = (
KeyEventArgs
)e.StagingItem.Input;
42
private void ProcessKeyDown(object sender,
KeyEventArgs
e)