[PTRun]Fix search being abandoned while cycling results (#27409)

* [Launcher] ignoring key preses while previous key press processing is ongoing

* extending TextChangedEventArgs with Initiator, storing and using initiator for the event lifetime to avoid overwriting of the initiator when parallel events occur.

* extending code with check on event object presence
This commit is contained in:
Laszlo Nemeth
2023-08-06 16:22:33 +02:00
committed by GitHub
parent 159bf7455d
commit 185ebad2f0
2 changed files with 57 additions and 12 deletions

View File

@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
namespace PowerLauncher
{
internal sealed class TextChangedEventWithInitiatorArgs : TextChangedEventArgs
{
public TextChangedEventWithInitiatorArgs(RoutedEvent id, UndoAction action)
: base(id, action)
{
}
public bool IsTextSetProgrammatically { get; set; }
}
}