Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain holmes <iain@xamarin.com>2017-06-01 14:27:49 +0300
committeriain holmes <iain@xamarin.com>2017-06-01 14:27:49 +0300
commit9baf6a88b4321558d64837a7e93d685c768b0fb7 (patch)
tree25f67476aca4bafa6cdd9897f065c9173b8c4f55 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking
parentaf4c5697fc3d202904bdd16cd322486113e48a40 (diff)
[A11y] Make the DockBarItems keyboard accessible
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
index e633ab017c..2e383f3b5e 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Docking/DockBarItem.cs
@@ -142,6 +142,7 @@ namespace MonoDevelop.Components.Docking
this.size = size;
this.bar = bar;
this.it = it;
+ CanFocus = true;
VisibleWindow = false;
UpdateTab ();
lastFrameSize = bar.Frame.Allocation.Size;
@@ -527,7 +528,28 @@ namespace MonoDevelop.Components.Docking
}
context.Fill ();
}
+
+ if (HasFocus) {
+ Gtk.Style.PaintFocus (Style, GdkWindow, State, Allocation, this, "button", Allocation.X + 2, Allocation.Y + 2, Allocation.Width - 4, Allocation.Height - 4);
+ }
return base.OnExposeEvent (evnt);
}
+
+ protected override bool OnFocusInEvent (Gdk.EventFocus evnt)
+ {
+ QueueDraw ();
+ return base.OnFocusInEvent (evnt);
+ }
+
+ protected override bool OnFocusOutEvent (Gdk.EventFocus evnt)
+ {
+ QueueDraw ();
+ return base.OnFocusOutEvent (evnt);
+ }
+
+ protected override void OnActivate ()
+ {
+ AutoShow ();
+ }
}
}