Fix inadvertedly changed code
MODIFY
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnKeyDownBehavior.cs
WalletWasabi.Fluent/Behaviors/ExecuteCommandOnKeyDownBehavior.cs
@@ -65,13 +65,11 @@ public class ExecuteCommandOnKeyDownBehavior : AttachedToVisualTreeBehavior<Cont
if (control.GetVisualRoot() is IInputElement inputRoot)
{
- inputRoot.AddDisposableHandler(Event, RootDefaultKeyDown, EventRoutingStrategy)
+ inputRoot.AddDisposableHandler(InputElement.KeyDownEvent, RootDefaultKeyDown, EventRoutingStrategy)
.DisposeWith(disposable);
}
}
- private static RoutedEvent<KeyEventArgs> Event => InputElement.KeyDownEvent;
-
private void RootDefaultKeyDown(object? sender, KeyEventArgs e)
{
var control = AssociatedObject;

Fix inadvertedly changed code