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