src\Framework\System\Windows\Controls\ComboBox.cs (10)
1143DependencyObject currentFocus = Keyboard.FocusedElement as DependencyObject;
1361NavigateByLine(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1381NavigateByLine(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1420NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1435NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1450NavigateByLine(HighlightedInfo, FocusNavigationDirection.Right, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1473NavigateByLine(HighlightedInfo, FocusNavigationDirection.Left, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1494NavigateByPage(HighlightedInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1502NavigateByPage(HighlightedInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
1508if (Keyboard.Modifiers == ModifierKeys.Control)
src\Framework\System\Windows\Controls\ItemsControl.cs (8)
67EventManager.RegisterClassHandler(typeof(ItemsControl), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotFocus));
1875DependencyObject startingElement = Keyboard.FocusedElement as DependencyObject;
2225return NavigateByPage(FocusedInfo, Keyboard.FocusedElement as FrameworkElement, direction, itemNavigateArgs);
2617if (container == null || Keyboard.IsFocusable(container))
3311NavigateByLine(startingInfo, FocusNavigationDirection.Up, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
3316NavigateByLine(startingInfo, FocusNavigationDirection.Down, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
3331NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
3341NavigateByLine(startingInfo, direction, new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
src\Framework\System\Windows\Controls\ListBox.cs (24)
78EventManager.RegisterClassHandler(typeof(ListBox), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(OnGotKeyboardFocus));
320if (((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended))
333if (((Keyboard.Modifiers & ModifierKeys.Control) == (ModifierKeys.Control)) && (SelectionMode == SelectionMode.Extended))
376new ItemNavigateArgs(e.Device, Keyboard.Modifiers)))
390NavigateToStart(new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
394NavigateToEnd(new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
410if ((Keyboard.Modifiers & (ModifierKeys.Control|ModifierKeys.Alt)) == ModifierKeys.Alt)
418if (IsTextSearchEnabled && Keyboard.Modifiers == ModifierKeys.None)
435if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
451if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Control)
456else if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == ModifierKeys.Shift)
461else if ((Keyboard.Modifiers & ModifierKeys.Shift) == 0)
481NavigateByPage(FocusNavigationDirection.Up, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
485NavigateByPage(FocusNavigationDirection.Down, new ItemNavigateArgs(e.Device, Keyboard.Modifiers));
673else if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
690if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == (ModifierKeys.Control | ModifierKeys.Shift))
694else if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
698else if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
712if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift)) == 0)
729NavigateToItem(ItemInfoFromContainer(listItem), new ItemNavigateArgs(Mouse.PrimaryDevice, Keyboard.Modifiers));
878if ((Keyboard.Modifiers & ModifierKeys.Control) == 0)
889if ((Keyboard.Modifiers & ModifierKeys.Shift) == ModifierKeys.Shift)
891bool clearCurrentSelection = (Keyboard.Modifiers & ModifierKeys.Control) == 0;
894else if ((Keyboard.Modifiers & ModifierKeys.Control) == 0)
src\Framework\System\Windows\Input\KeyboardNavigation.cs (13)
893Current.ShowFocusVisual(Keyboard.FocusedElement as DependencyObject);
1030return Navigate(currentElement, request, Keyboard.Modifiers);
1272if(inputEventArgs.RoutedEvent != Keyboard.KeyDownEvent)
2824sourceUIElement.RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2829sourceContentElement.RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2841targetContentElement.AddHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus), true);
2853targetUIElement.AddHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus), true);
2882((UIElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
2884((ContentElement)sender).RemoveHandler(Keyboard.PreviewLostKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(_LostFocus));
3259if (inputEventArgs.RoutedEvent == Keyboard.LostKeyboardFocusEvent)
3270else if (inputEventArgs.RoutedEvent == Keyboard.KeyDownEvent)
3282if ((Keyboard.Modifiers & (ModifierKeys.Control | ModifierKeys.Shift | ModifierKeys.Windows)) == ModifierKeys.None)
3301else if (inputEventArgs.RoutedEvent == Keyboard.KeyUpEvent)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\CategoryList.cs (1)
764Keyboard.FocusedElement,
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (5)
62EventManager.RegisterClassHandler(typeof(Window), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandleGotKeyboardFocusEvent), true);
63EventManager.RegisterClassHandler(typeof(Popup), Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandleGotKeyboardFocusEvent), true);
65EventManager.RegisterClassHandler(typeof(Window), Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandlePreviewGotKeyboardFocus), true);
66EventManager.RegisterClassHandler(typeof(Popup), Keyboard.PreviewGotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler(FocusScopeManager.HandlePreviewGotKeyboardFocus), true);
444Keyboard.Focus(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
989Keyboard.Focus(null);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\StringEditor.cs (1)
367Keyboard.Focus(null);