You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
610 B
24 lines
610 B
11 months ago
|
using Avalonia.Input;
|
||
|
using StabilityMatrix.Avalonia.Controls;
|
||
11 months ago
|
using StabilityMatrix.Avalonia.ViewModels.PackageManager;
|
||
11 months ago
|
using StabilityMatrix.Core.Attributes;
|
||
|
|
||
11 months ago
|
namespace StabilityMatrix.Avalonia.Views.PackageManager;
|
||
11 months ago
|
|
||
|
[Singleton]
|
||
11 months ago
|
public partial class PackageInstallBrowserView : UserControlBase
|
||
11 months ago
|
{
|
||
11 months ago
|
public PackageInstallBrowserView()
|
||
11 months ago
|
{
|
||
|
InitializeComponent();
|
||
|
}
|
||
11 months ago
|
|
||
|
private void InputElement_OnKeyDown(object? sender, KeyEventArgs e)
|
||
|
{
|
||
11 months ago
|
if (e.Key == Key.Escape && DataContext is PackageInstallBrowserViewModel vm)
|
||
11 months ago
|
{
|
||
|
vm.ClearSearchQuery();
|
||
|
}
|
||
|
}
|
||
11 months ago
|
}
|