private static void OnPaletteKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Tab && !e.Handled) { ApplicationWindow.HandleTabRequest(e); } }
private static void OnWindowKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Tab && !e.Handled) { ApplicationWindow.HandleTabRequest(e); } if (!e.Handled) { Window window = sender as Window; if (window != null) { Window owningWindow = ApplicationWindow.GetOwningWindow(window); if (owningWindow != null) { owningWindow.RaiseEvent(e); } } } }