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:
authorJose Medrano <josmed@microsoft.com>2019-06-26 15:56:20 +0300
committerJose Medrano <josmed@microsoft.com>2019-07-03 20:14:07 +0300
commitd30b704d53dc72cc2e76c52177c1db68ae40dfd9 (patch)
treee18903beaf6bdfda618c4f83832518109da556b7 /main/src/addins/MonoDevelop.DesignerSupport
parentd47e7554540d4a0c9109c33d82dd559fb7ef683f (diff)
Adds a ZOrder system based in GtkNSViewHost
This commits fixes the current problem with the zorder in adding views to the GtkQuartz window. Because this, we where having some problems in drag and drop and clicking over views. To fix this we added a new mechanism to order the position of the views, and fix if there are other views not well calculated. Fixed VSTS #935567 - [Shell] Mouse click and resize in Splitters sometimes fails to complete the operation
Diffstat (limited to 'main/src/addins/MonoDevelop.DesignerSupport')
-rw-r--r--main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/NativeViews/ClickedButton.cs32
1 files changed, 16 insertions, 16 deletions
diff --git a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/NativeViews/ClickedButton.cs b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/NativeViews/ClickedButton.cs
index 6ee0f8eb2a..4d580cfa91 100644
--- a/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/NativeViews/ClickedButton.cs
+++ b/main/src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Toolbox/NativeViews/ClickedButton.cs
@@ -55,29 +55,29 @@ namespace MonoDevelop.DesignerSupport.Toolbox.NativeViews
return base.BecomeFirstResponder ();
}
- #region INativeChildView
+ #region INativeChildView
- public void OnKeyPressed (object o, Gtk.KeyPressEventArgs ev)
- {
+ public void OnKeyPressed (object o, Gtk.KeyPressEventArgs ev)
+ {
if (ev.Event.State == Gdk.ModifierType.None && (ev.Event.Key == Gdk.Key.KP_Enter || ev.Event.Key == Gdk.Key.KP_Space)) {
PerformClick (this);
- }
- }
-
- public void OnKeyReleased (object o, Gtk.KeyReleaseEventArgs ev)
- {
-
+ }
}
- public override void KeyDown (NSEvent theEvent)
- {
- base.KeyDown (theEvent);
- if ((int)theEvent.ModifierFlags == (int)KeyModifierFlag.None && (theEvent.KeyCode == (int)KeyCodes.Enter || theEvent.KeyCode == (int)KeyCodes.Space)) {
- PerformClick (this);
- }
+ public void OnKeyReleased (object o, Gtk.KeyReleaseEventArgs ev)
+ {
+
+ }
+
+ public override void KeyDown (NSEvent theEvent)
+ {
+ base.KeyDown (theEvent);
+ if ((int)theEvent.ModifierFlags == (int)KeyModifierFlag.None && (theEvent.KeyCode == (int)KeyCodes.Enter || theEvent.KeyCode == (int)KeyCodes.Space)) {
+ PerformClick (this);
+ }
}
- #endregion
+ #endregion
}
}
#endif \ No newline at end of file