Unfocus title text box on enter pressed

This commit is contained in:
2026-02-17 13:34:57 +09:00
parent e9eaa0c98c
commit b501abf447
2 changed files with 14 additions and 1 deletions
+7
View File
@@ -1,6 +1,7 @@
using System;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Markup.Xaml;
namespace ReceiptPDFBuilder.Views
@@ -20,5 +21,11 @@ namespace ReceiptPDFBuilder.Views
LogScrollView.ScrollToEnd();
}
}
public void UnfocusTextbox()
{
var topLevel = TopLevel.GetTopLevel(this);
topLevel?.FocusManager?.ClearFocus();
}
}
}