diff options
author | iain holmes <iain@xamarin.com> | 2017-05-19 11:48:37 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2017-05-19 12:33:01 +0300 |
commit | 9e0c924c68abc18197d76a720a9a97d4371ae200 (patch) | |
tree | 810b9d6d177402e1f5e3eb965af51e99ef740d66 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs | |
parent | 53c478d2a4b9f4be3ef0869d51ec5bc0bc44aa05 (diff) |
[A11y] Make the InformationPopoverWidget accept keyboard focus
Fixes BXC 53775
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs index fa95a33c4b..376556e212 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/InformationPopoverWidget.cs @@ -44,6 +44,7 @@ namespace MonoDevelop.Components imageView = new Xwt.ImageView (); UpdateIcon (); Content = imageView; + CanGetFocus = true; } public TaskSeverity Severity { @@ -92,6 +93,12 @@ namespace MonoDevelop.Components return ImageService.GetIcon ("md-information", Gtk.IconSize.Menu); } + protected override void OnGotFocus (EventArgs args) + { + base.OnGotFocus (args); + ShowPopover (); + } + protected override void OnMouseEntered (EventArgs args) { base.OnMouseEntered (args); @@ -115,6 +122,12 @@ namespace MonoDevelop.Components ShowPopover (); } + protected override void OnLostFocus (EventArgs args) + { + base.OnLostFocus (args); + DestroyPopover (); + } + protected override void OnMouseExited (EventArgs args) { base.OnMouseExited (args); |