167 references to Key
Microsoft.CodeAnalysis.EditorFeatures.Wpf (4)
InlineHints\InlineHintsKeyProcessorProvider.cs (1)
82
=> args.SystemKey == key || args.
Key
== key;
InlineRename\UI\Adornment\RenameFlyout.xaml.cs (3)
173
switch (e.
Key
)
267
if (e.
Key
is Key.Down or Key.Up)
269
var newIdentifier = smartRenameViewModel.ScrollSuggestions(currentIdentifier, down: e.
Key
== Key.Down);
Microsoft.VisualStudio.LanguageServices (3)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (1)
207
if (e.
Key
== Key.Escape)
PickMembers\PickMembersDialog.xaml.cs (1)
123
if (e.
Key
== Key.Space && e.KeyboardDevice.Modifiers == ModifierKeys.None)
ValueTracking\ValueTrackingTree.xaml.cs (1)
25
e.Handled = e.Handled || e.
Key
switch
PresentationCore (6)
System\Windows\Input\Command\KeyGesture.cs (1)
177
if(keyEventArgs != null && IsDefinedKey(keyEventArgs.
Key
))
System\Windows\Input\KeyboardDevice.cs (2)
805
Key key = previewKeyDown.
Key
;
860
Key key = previewKeyUp.
Key
;
System\Windows\Input\KeyEventArgs.cs (1)
65
/// The original key, as opposed to <see cref="
Key
"/>, which might
System\Windows\Input\TextServicesManager.cs (2)
188
if(!keyArgs.Handled && keyArgs.
Key
== Key.ImeProcessed)
205
if(!keyArgs.Handled && keyArgs.
Key
== Key.ImeProcessed)
PresentationFramework (94)
MS\Internal\Documents\DocumentViewerHelper.cs (5)
337
if (e.
Key
== Key.Left || e.
Key
== Key.Right || e.
Key
== Key.Up || e.
Key
== Key.Down)
343
FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.
Key
);
System\Windows\Controls\Calendar.cs (3)
839
if (e.
Key
== Key.LeftShift || e.
Key
== Key.RightShift)
1255
switch (e.
Key
)
System\Windows\Controls\CheckBox.cs (4)
72
if (e.
Key
== Key.OemPlus || e.
Key
== Key.Add)
78
else if (e.
Key
== Key.OemMinus || e.
Key
== Key.Subtract)
System\Windows\Controls\ComboBox.cs (1)
1321
Key key = e.
Key
;
System\Windows\Controls\ContextMenu.cs (2)
417
Key key = e.
Key
;
448
if (!e.Handled && IsOpen && e.
Key
== Key.Apps)
System\Windows\Controls\DataGrid.cs (17)
5473
switch (e.
Key
)
5557
DependencyObject nextFocusTarget = this.PredictFocus(KeyToTraversalDirection(e.
Key
));
5576
if (!controlModifier && (e.
Key
== Key.Up || e.
Key
== Key.Down))
5593
if ((e.
Key
== Key.Up && ItemsControl.EqualsEx(cvg.Items[0], currentInfo.Item)) ||
5594
(e.
Key
== Key.Down && ItemsControl.EqualsEx(cvg.Items[cvg.Items.Count - 1], currentInfo.Item)))
5599
if (e.
Key
== Key.Down)
5613
if ((e.
Key
== Key.Up && currentRowIndex == 0) ||
5614
(e.
Key
== Key.Down && currentRowIndex == Items.Count - 1))
5628
Key rtlKey = e.
Key
;
5680
MoveFocus(new TraversalRequest(e.
Key
== Key.Left ? FocusNavigationDirection.Left : FocusNavigationDirection.Right));
5726
MoveFocus(new TraversalRequest(e.
Key
== Key.Left ? FocusNavigationDirection.Left : FocusNavigationDirection.Right));
5822
TraversalRequest request = new TraversalRequest(KeyToTraversalDirection(e.
Key
));
5842
(e.
Key
== Key.Up ? FocusNavigationDirection.Up : FocusNavigationDirection.Down),
6030
bool homeKey = (e.
Key
== Key.Home);
6098
int targetIndex = (e.
Key
== Key.PageUp) ? rowIndex - jumpDistance : rowIndex + jumpDistance;
6132
FocusNavigationDirection direction = e.
Key
== Key.PageUp ? FocusNavigationDirection.Up : FocusNavigationDirection.Down;
System\Windows\Controls\DataGridCell.cs (1)
986
if (e.
Key
== Key.F3 && Column != null && Column.CanUserSort)
System\Windows\Controls\DataGridCheckBoxColumn.cs (1)
215
(keyArgs.
Key
== Key.Space);
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
602
Key key = keyArgs.
Key
;
System\Windows\Controls\DataGridHelper.cs (1)
748
return keyArgs.
Key
== Key.ImeProcessed;
System\Windows\Controls\DatePicker.cs (5)
949
if (args.
Key
== Key.Escape || ((args.
Key
== Key.Enter || args.
Key
== Key.Space) && c.DisplayMode == CalendarMode.Month))
952
if (args.
Key
== Key.Escape)
1151
switch (e.
Key
)
System\Windows\Controls\DocumentViewer.cs (1)
2204
if (e.
Key
== Key.F3)
System\Windows\Controls\FlowDocumentReader.cs (1)
793
switch (e.
Key
)
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
650
switch (e.
Key
)
System\Windows\Controls\GridSplitter.cs (1)
706
Key key = e.
Key
;
System\Windows\Controls\GridViewColumnHeader.cs (1)
363
if (e.
Key
== Key.Escape && _headerGripper != null && _headerGripper.IsDragging)
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1273
if (e.
Key
== Key.Escape && _isHeaderDragging)
System\Windows\Controls\ItemsControl.cs (1)
1672
if (e.
Key
== Key.Back)
System\Windows\Controls\ListBox.cs (2)
308
Key key = e.
Key
;
394
if (e.
Key
== Key.Enter && !(bool)GetValue(KeyboardNavigation.AcceptsReturnProperty))
System\Windows\Controls\Menu.cs (1)
183
Key key = e.
Key
;
System\Windows\Controls\MenuItem.cs (2)
1872
Key key = e.
Key
;
2002
handled = MenuItemNavigate(e.
Key
, e.KeyboardDevice.Modifiers);
System\Windows\Controls\PopupControlService.cs (5)
232
(e.
Key
== Key.LeftCtrl || e.
Key
== Key.RightCtrl))
234
_lastCtrlKeyDown = e.
Key
;
244
if (e.
Key
== Key.Apps)
250
if ((_lastCtrlKeyDown != Key.None) && (e.
Key
== _lastCtrlKeyDown) &&
System\Windows\Controls\Primitives\ButtonBase.cs (3)
600
if (e.
Key
== Key.Space)
620
else if (e.
Key
== Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty))
664
if ((e.
Key
== Key.Space) && IsSpaceKeyDown)
System\Windows\Controls\Primitives\MenuBase.cs (1)
438
Key key = e.
Key
;
System\Windows\Controls\Primitives\RepeatButton.cs (2)
297
if ((e.
Key
== Key.Space) && (ClickMode != ClickMode.Hover))
309
if ((e.
Key
== Key.Space) && (ClickMode != ClickMode.Hover))
System\Windows\Controls\ScrollViewer.cs (6)
933
if (e.
Key
== Key.Left || e.
Key
== Key.Right || e.
Key
== Key.Up || e.
Key
== Key.Down)
943
FocusNavigationDirection direction = KeyboardNavigation.KeyToTraversalDirection(e.
Key
);
1059
switch (e.
Key
)
System\Windows\Controls\SinglePageViewer.cs (2)
377
if (e.
Key
== Key.Escape)
387
if (e.
Key
== Key.F3)
System\Windows\Controls\TabControl.cs (1)
404
switch (e.
Key
)
System\Windows\Controls\ToolBar.cs (1)
637
switch (e.
Key
)
System\Windows\Controls\TreeView.cs (4)
513
switch (e.
Key
)
523
if (HandleScrollKeys(e.
Key
))
532
switch (e.
Key
)
711
(e.
Key
== Key.PageUp ? FocusNavigationDirection.Up : FocusNavigationDirection.Down),
System\Windows\Controls\TreeViewItem.cs (2)
566
switch (e.
Key
)
586
if (LogicalLeft(e.
Key
))
System\Windows\Documents\Hyperlink.cs (2)
700
if (!e.Handled && e.
Key
== Key.Enter)
949
if (!e.Handled && e.
Key
== Key.Enter)
System\windows\Documents\TextEditorTyping.cs (9)
235
if (e.
Key
!= Key.ImeProcessed)
305
if ((e.
Key
== Key.RightShift || e.
Key
== Key.LeftShift) && //
310
else if ((e.
Key
== Key.RightCtrl || e.
Key
== Key.LeftCtrl) && //
315
else if (e.
Key
== Key.RightCtrl || e.
Key
== Key.LeftCtrl)
333
switch (e.
Key
)
339
TextEditorTyping.ScheduleInput(This, new KeyUpInputItem(This, e.
Key
, e.KeyboardDevice.Modifiers));
System\Windows\Input\KeyboardNavigation.cs (3)
1236
keyEventArgs.Handled = Navigate(sourceElement, keyEventArgs.
Key
, keyEventArgs.KeyboardDevice.Modifiers, fromProcessInput: true);
3246
return (e.
Key
== Key.System) ? e.SystemKey : e.
Key
;
PresentationUI (6)
MS\Internal\Documents\Application\PageTextBox.cs (1)
199
switch (e.
Key
)
MS\Internal\Documents\Application\ZoomComboBox.cs (1)
257
switch (e.
Key
)
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (2)
583
if (e.
Key
== Key.Escape)
1254
!menuItem.IsSubmenuOpen && e.
Key
== Key.Escape)
MS\Internal\Documents\FindToolBar.xaml.cs (2)
244
(e.
Key
== Key.Return || e.
Key
== Key.Execute))
System.Windows.Controls.Ribbon (54)
Microsoft\Windows\Controls\KeyTipService.cs (4)
629
return ((e.
Key
== Key.System) &&
639
switch (e.
Key
)
724
if (keyArgs.
Key
== Key.Escape)
736
keyArgs.
Key
== Key.System &&
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (4)
1853
if (e.
Key
== Key.Escape)
1857
else if ((e.
Key
== Key.Left || e.
Key
== Key.Right) &&
1860
e.Handled = OnArrowControlKeyDown(e.
Key
);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (6)
442
if (e.
Key
== Key.Down)
468
else if (e.
Key
== Key.Up)
510
else if (e.
Key
== Key.Left ||
511
e.
Key
== Key.Right)
516
if ((e.
Key
== Key.Left) == (FlowDirection == FlowDirection.LeftToRight))
537
else if (e.
Key
== Key.Left)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (6)
930
if ((e.
Key
== Key.Escape) &&
942
if ((e.
Key
== Key.F4) &&
971
Key key = e.
Key
;
1008
Key key = e.
Key
;
1211
if (e.
Key
== Key.Space ||
1212
e.
Key
== Key.Enter)
Microsoft\Windows\Controls\Ribbon\RibbonContextMenu.cs (1)
160
if (e.
Key
== Key.Escape)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (7)
2679
if (e.
Key
== Key.Down || e.
Key
== Key.Up)
2681
FocusNavigationDirection direction = (e.
Key
== Key.Down) ? FocusNavigationDirection.Down : FocusNavigationDirection.Up;
2700
else if ((e.
Key
== Key.Left) == (FlowDirection == FlowDirection.LeftToRight))
2745
else if (e.
Key
== Key.PageDown || e.
Key
== Key.PageUp)
2747
FocusNavigationDirection direction = e.
Key
== Key.PageDown ? FocusNavigationDirection.Down : FocusNavigationDirection.Up;
Microsoft\Windows\Controls\Ribbon\RibbonGalleryItem.cs (3)
413
if (e.
Key
== Key.Space)
425
else if (e.
Key
== Key.Enter)
446
if (e.
Key
== Key.Space)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (5)
1247
Key key = e.
Key
;
2427
if (e.
Key
== Key.Up ||
2428
e.
Key
== Key.Down)
2433
if (RibbonHelper.IsEndFocusableMenuItem(menuItem, e.
Key
== Key.Up /* isFirst */))
2435
if (e.
Key
== Key.Down)
Microsoft\Windows\Controls\Ribbon\RibbonMenuButton.cs (5)
733
if (e.
Key
== Key.Space ||
734
e.
Key
== Key.Enter)
753
if (e.
Key
== Key.Space ||
754
e.
Key
== Key.Enter)
804
switch (e.
Key
)
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (7)
811
Key key = e.
Key
;
858
if (e.
Key
== Key.Right)
935
if (e.
Key
== Key.Space)
943
e.
Key
!= Key.Left &&
944
e.
Key
!= Key.Right &&
945
e.
Key
!= Key.Tab)
951
if (e.
Key
== _handleNextUpKey)
Microsoft\Windows\Controls\Ribbon\RibbonSplitMenuItem.cs (1)
179
if (HasItems && e.
Key
== Key.Enter)
Microsoft\Windows\Controls\Ribbon\RibbonTab.cs (1)
371
if (e.
Key
== Key.Up && focusedElement != null && tabHeader != null)
Microsoft\Windows\Controls\Ribbon\RibbonTabHeader.cs (3)
348
if (e.
Key
== Key.Down)
361
else if (e.
Key
== Key.Space ||
362
e.
Key
== Key.Enter)
Microsoft\Windows\Controls\Ribbon\RibbonTextBox.cs (1)
149
if (e.
Key
== Key.Enter)