Skip to content

Commit

Permalink
Fixed focus issues on wpf
Browse files Browse the repository at this point in the history
  • Loading branch information
joaompneves committed Apr 8, 2021
1 parent b993295 commit 592a802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CefGlue.WPF/Platform/WpfControl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
Expand All @@ -25,7 +25,7 @@ public WpfControl(FrameworkElement control)
{
_control = control;

control.GotFocus += OnGotFocus;
control.GotKeyboardFocus += OnGotFocus;
control.LayoutUpdated += OnLayoutUpdated;
}

Expand Down
4 changes: 2 additions & 2 deletions CefGlue.WPF/Platform/WpfOffScreenControlHost.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -44,7 +44,7 @@ public WpfOffScreenControlHost(FrameworkElement control) : base(control)
control.AllowDrop = true;

control.IsVisibleChanged += OnIsVisibleChanged;
control.LostFocus += OnLostFocus;
control.LostKeyboardFocus += OnLostFocus;

control.MouseMove += OnMouseMove;
control.MouseLeave += OnMouseLeave;
Expand Down

0 comments on commit 592a802

Please sign in to comment.