Created
April 17, 2012 20:01
-
-
Save mkrueger/2408637 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /home/mike/work/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkWorkarounds.cs (Basis) | |
+++ /home/mike/work/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/GtkWorkarounds.cs (Arbeitskopie) | |
@@ -446,9 +446,12 @@ | |
modifier &= ~Gdk.ModifierType.LockMask; | |
//fully decomposed | |
- TranslateKeyboardState (evt.HardwareKeycode, Gdk.ModifierType.None, 0, | |
- out keyval, out effectiveGroup, out level, out consumedModifiers); | |
- accelList.Add (new KeyboardShortcut ((Gdk.Key)keyval, FixMacModifiers (modifier, grp) & accelMods)); | |
+ TranslateKeyboardState (evt.HardwareKeycode, Gdk.ModifierType.None, 0, out keyval, out effectiveGroup, out level, out consumedModifiers); | |
+ | |
+ if ((modifier & Gdk.ModifierType.Mod3Mask) != 0) | |
+ AddIfNotDuplicate (accelList, new KeyboardShortcut (mapped.Key, mapped.State & accelMods)); | |
+ AddIfNotDuplicate (accelList, new KeyboardShortcut ((Gdk.Key)keyval, FixMacModifiers (modifier, grp) & accelMods)); | |
+ | |
//with shift composed | |
if ((modifier & Gdk.ModifierType.ShiftMask) != 0) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment