Fixed issue where we couldn't enter a space into textbox within SettingsExpander

This commit is contained in:
TheXamlGuy
2024-06-27 18:11:11 +01:00
parent 0244bab513
commit 8e513bbbe4
5 changed files with 118 additions and 9 deletions
@@ -0,0 +1,16 @@
using Avalonia.Controls.Primitives;
using Avalonia.Input;
namespace Toolkit.UI.Controls.Avalonia;
public class SettingsExpanderToggleButton :
ToggleButton
{
protected override void OnKeyDown(KeyEventArgs args)
{
if (args.Key is not Key.Space)
{
base.OnKeyDown(args);
}
}
}