Fixed issue where we couldn't enter a space into textbox within SettingsExpander
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user