Profile editor - Ensure hotkeys work whenever working i nthe editor

This commit is contained in:
Robert committed 2022-06-08 21:19:08 +02:00
1 parent 0d3890e560
commit 38986b73ac
8 files changed
+59 -21

No files matched your search

@@ -1,3 +1,4 @@
using Avalonia;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using Avalonia.ReactiveUI;
@@ -11,6 +12,17 @@ public class ProfileEditorView : ReactiveUserControl<ProfileEditorViewModel>
InitializeComponent();
}
#region Overrides of Visual
/// <inheritdoc />
protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e)
{
base.OnAttachedToVisualTree(e);
Focus();
}
#endregion
private void InitializeComponent()
{
AvaloniaXamlLoader.Load(this);