Browse Source

Set initial input focus using LinuxFrameBufferPlatform

pull/5457/head
Peter Davis 6 years ago
parent
commit
1abf9964e6
  1. 7
      src/Linux/Avalonia.LinuxFramebuffer/LinuxFramebufferPlatform.cs

7
src/Linux/Avalonia.LinuxFramebuffer/LinuxFramebufferPlatform.cs

@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Threading;
using Avalonia.Controls;
@ -79,6 +79,11 @@ namespace Avalonia.LinuxFramebuffer
tl.Prepare();
_topLevel = tl;
_topLevel.Renderer.Start();
if (_topLevel is IFocusScope scope)
{
FocusManager.Instance?.SetFocusScope(scope);
}
}
_topLevel.Content = value;

Loading…
Cancel
Save