diff options
author | iain holmes <iain@xamarin.com> | 2017-06-06 12:42:20 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2017-06-06 12:42:20 +0300 |
commit | 062c7df347743ae847e164ff61283a547313c647 (patch) | |
tree | d916cf0e64e19ce6e5d907fe75c5f1984792bb61 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking | |
parent | 37b48a615c6791aba6a72f025beab5f7a09a7ecc (diff) |
[A11y] Always focus the overlay if it is present
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs index f13604c685..48f4c2d9a1 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockFrame.cs @@ -1146,6 +1146,17 @@ namespace MonoDevelop.Components.Docking internal static Cairo.Color ToCairoColor (Gdk.Color color)
{
return new Cairo.Color (color.Red / (double) ushort.MaxValue, color.Green / (double) ushort.MaxValue, color.Blue / (double) ushort.MaxValue);
+ } + + protected override bool OnFocused (DirectionType direction) + { + // If there's an overlay widget, that's all we can focus + if (overlayWidget != null && overlayWidget.Visible) { + overlayWidget.ChildFocus (direction); + return true; + } + + return base.OnFocused (direction); }
} |