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