Author: lluis
Date: 2008-02-18 19:15:38 -0500 (Mon, 18 Feb 2008)
New Revision: 96113

Modified:
   trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
   
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs
Log:
* Mono.TextEditor/TextEditor.cs: Added key bindings for
  control+shift+up/down. In OnLeaveNotifyEvent, reset the cursor only
  when the mouse is really leaving the window.

Modified: trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-18 
23:47:19 UTC (rev 96112)
+++ trunk/monodevelop/main/src/addins/Mono.Texteditor/ChangeLog 2008-02-19 
00:15:38 UTC (rev 96113)
@@ -1,3 +1,9 @@
+2008-02-19  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * Mono.TextEditor/TextEditor.cs: Added key bindings for
+         control+shift+up/down. In OnLeaveNotifyEvent, reset the cursor only 
when
+         the mouse is really leaving the window.
+
 2008-02-19  Mike Krüger <[EMAIL PROTECTED]> 
 
        * Mono.TextEditor/DefaultEditActions.cs, 
Mono.TextEditor/TextViewMargin.cs,

Modified: 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs
===================================================================
--- 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs 
    2008-02-18 23:47:19 UTC (rev 96112)
+++ 
trunk/monodevelop/main/src/addins/Mono.Texteditor/Mono.TextEditor/TextEditor.cs 
    2008-02-19 00:15:38 UTC (rev 96113)
@@ -179,6 +179,7 @@
                        keyBindings.Add (GetKeyCode (Gdk.Key.Up), new 
CaretMoveUp ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.Up, 
Gdk.ModifierType.ControlMask), new ScrollUpAction ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.Up, 
Gdk.ModifierType.ShiftMask), new SelectionMoveUp ());
+                       keyBindings.Add (GetKeyCode (Gdk.Key.Up, 
Gdk.ModifierType.ShiftMask | Gdk.ModifierType.ControlMask), new SelectionMoveUp 
());
                        
                        keyBindings.Add (GetKeyCode (Gdk.Key.KP_Down), new 
CaretMoveDown ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.KP_Down, 
Gdk.ModifierType.ControlMask), new ScrollDownAction ());
@@ -186,6 +187,7 @@
                        keyBindings.Add (GetKeyCode (Gdk.Key.Down), new 
CaretMoveDown ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.Down, 
Gdk.ModifierType.ControlMask), new ScrollDownAction ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.Down, 
Gdk.ModifierType.ShiftMask), new SelectionMoveDown ());
+                       keyBindings.Add (GetKeyCode (Gdk.Key.Down, 
Gdk.ModifierType.ShiftMask | Gdk.ModifierType.ControlMask), new 
SelectionMoveDown ());
                        
                        keyBindings.Add (GetKeyCode (Gdk.Key.KP_Home), new 
CaretMoveHome ());
                        keyBindings.Add (GetKeyCode (Gdk.Key.KP_Home, 
Gdk.ModifierType.ShiftMask), new SelectionMoveHome ());
@@ -709,9 +711,8 @@
                
                protected override bool OnLeaveNotifyEvent (Gdk.EventCrossing e)
                {
-                       GdkWindow.Cursor = null;
-                       
                        if (e.Mode == CrossingMode.Normal) {
+                               GdkWindow.Cursor = null;
                                if (oldMargin != null)
                                        oldMargin.MouseLeft ();
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to