43 references to KeyboardDevice
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
InlineHints\InlineHintsKeyProcessorProvider.cs (1)
106
args.
KeyboardDevice
.Modifiers == ModifierKeys.Alt)
Microsoft.VisualStudio.LanguageServices (4)
EditorConfigSettings\Common\TableControlFocusFixer.cs (2)
27
if (e.NewFocus is not ListView && (e.
KeyboardDevice
.IsKeyDown(Key.Left) || e.
KeyboardDevice
.IsKeyDown(Key.Right)))
PickMembers\PickMembersDialog.xaml.cs (1)
123
if (e.Key == Key.Space && e.
KeyboardDevice
.Modifiers == ModifierKeys.None)
ValueTracking\ValueTrackingTree.xaml.cs (1)
29
Key.F8 => e.
KeyboardDevice
.Modifiers == ModifierKeys.Shift ? TrySelectItem(GetPreviousItem(), navigate: true) : TrySelectItem(GetNextItem(expandNode: true), navigate: true),
PresentationCore (5)
System\Windows\Input\KeyEventArgs.cs (4)
112
get {return this.
KeyboardDevice
.GetKeyStates(_realKey);}
129
get {return this.
KeyboardDevice
.IsKeyDown(_realKey);}
138
get {return this.
KeyboardDevice
.IsKeyUp(_realKey);}
147
get {return this.
KeyboardDevice
.IsKeyToggled(_realKey);}
System\Windows\Input\TextCompositionManager.cs (1)
476
ModifierKeys modifiers = keyArgs.
KeyboardDevice
.Modifiers;
PresentationFramework (32)
System\Windows\Controls\ComboBox.cs (7)
1339
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
1361
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt)
1380
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == 0)
1404
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt && !IsEditable)
1419
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt && !IsEditable)
1434
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt && !IsEditable)
1457
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) != ModifierKeys.Alt && !IsEditable)
System\Windows\Controls\DataGrid.cs (7)
5611
bool controlModifier = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == ModifierKeys.Control);
5882
new ItemNavigateArgs(e.
KeyboardDevice
, Keyboard.Modifiers),
5916
bool previous = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
5985
if (CommitAnyEdit() && ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == 0))
5987
bool shiftModifier = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
6045
if (ignoreControlKey || ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == 0))
6073
bool controlModifier = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == ModifierKeys.Control);
System\Windows\Controls\DataGridComboBoxColumn.cs (1)
600
bool isAltDown = (keyArgs.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == ModifierKeys.Alt;
System\Windows\Controls\DocumentViewer.cs (1)
2262
_findToolbar.SearchUp = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
System\Windows\Controls\FlowDocumentReader.cs (1)
818
FindToolBar.SearchUp = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
673
FindToolBar.SearchUp = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
System\Windows\Controls\MenuItem.cs (1)
2010
handled = MenuItemNavigate(e.Key, e.
KeyboardDevice
.Modifiers);
System\Windows\Controls\ScrollViewer.cs (2)
1053
bool fControlDown = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) != 0);
1054
bool fAltDown = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) != 0);
System\Windows\Controls\SinglePageViewer.cs (1)
395
FindToolBar.SearchUp = ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift);
System\Windows\Controls\TabControl.cs (2)
417
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
420
if ((e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
System\windows\Documents\TextEditorTyping.cs (6)
310
(e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) != 0 && (e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == 0)
315
(e.
KeyboardDevice
.Modifiers & ModifierKeys.Shift) != 0 && (e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == 0)
341
if (TextEditor._ThreadLocalStore.PureControlShift && (e.
KeyboardDevice
.Modifiers & ModifierKeys.Alt) == 0)
343
TextEditorTyping.ScheduleInput(This, new KeyUpInputItem(This, e.Key, e.
KeyboardDevice
.Modifiers));
System\Windows\Input\KeyboardNavigation.cs (2)
1199
DependencyObject innerElement = keyEventArgs.
KeyboardDevice
.Target as DependencyObject;
1235
keyEventArgs.Handled = Navigate(sourceElement, keyEventArgs.Key, keyEventArgs.
KeyboardDevice
.Modifiers, fromProcessInput: true);
System.Windows.Controls.Ribbon (1)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
1884
((e.
KeyboardDevice
.Modifiers & ModifierKeys.Control) == ModifierKeys.Control))