/// <summary> /// Determines if this is the Correct shortcut, if not it continues along the bar to find a matching shortcut. /// </summary> /// <param name="args">Shortcut Request Args</param> internal void ShortcutRequested(ref ShortcutKeyRequestArgs args) { if (args.Key == ShortcutKey) { Activate(args.ShiftKeyHeld); args.Handled = true; } }
public async Task TextToobar_PopupShowsInCorrectXamlRoot() { await App.Dispatcher.EnqueueAsync(async() => { await Task.Delay(500); var args = new ShortcutKeyRequestArgs(Windows.System.VirtualKey.K, false, null); _textToolbar.GetDefaultButton(Microsoft.Toolkit.Uwp.UI.Controls.TextToolbarButtons.ButtonType.Link).ShortcutRequested(ref args); await Task.Delay(10000); }); }