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:
authorMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-29 02:00:50 +0400
committerMichael Hutchinson <m.j.hutchinson@gmail.com>2011-11-29 02:20:49 +0400
commitba5a03ff9615c5f2a0beac2d14fad5dbd9a7bb78 (patch)
treeda8972431a96ec1beeee418cdad5f801703c0cc9
parentada96964bb8ca0bde62be3820c7be1fc7cd3eb46 (diff)
[Gtk] Bug 2200 - Cmd-click pops up the context menu
Workaround for old GTK, works fine with newer GTK.
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
index 892902ce5e..55d7a72702 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/GtkWorkarounds.cs
@@ -227,10 +227,13 @@ namespace Mono.TextEditor
return true;
if (Platform.IsMac) {
- if (evt.Button == 1 &&
+ if (!oldMacKeyHacks &&
+ evt.Button == 1 &&
(evt.State & Gdk.ModifierType.ControlMask) != 0 &&
(evt.State & (Gdk.ModifierType.Button2Mask | Gdk.ModifierType.Button3Mask)) == 0)
- return true;
+ {
+ return true;
+ }
}
return false;