[Monodevelop-patches-list] r2067 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Dec 10 19:47:50 EST 2004
Author: tberman
Date: 2004-12-10 19:47:49 -0500 (Fri, 10 Dec 2004)
New Revision: 2067
Modified:
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
2004-12-07 Alexandre Gomes <alexmipego at hotmail.com>
* Gui/SourceEditorDisplayBinding.cs:
* Gui/SourceEditorBuffer.cs: Keys 'Home' and 'End' while having
selected text now moves to Start/End of selection instead of Start/End
of insertmark line.
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-12-10 00:57:58 UTC (rev 2066)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-12-11 00:47:49 UTC (rev 2067)
@@ -1,7 +1,15 @@
2004-12-07 Alexandre Gomes <alexmipego at hotmail.com>
+ * Gui/SourceEditorDisplayBinding.cs:
+ * Gui/SourceEditorBuffer.cs: Keys 'Home' and 'End' while having
+ selected text now moves to Start/End of selection instead of Start/End
+ of insertmark line.
+
+2004-12-07 Alexandre Gomes <alexmipego at hotmail.com>
+
* Gui/SourceEditorDisplayBinding.cs,
- * Gui/SourceEditorBuffer.cs: Added implementation for CommentCode and UncommentCode
+ * Gui/SourceEditorBuffer.cs: Added implementation for CommentCode and
+ UncommentCode
2004-12-07 Lluis Sanchez Gual <lluis at novell.com>
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-12-10 00:57:58 UTC (rev 2066)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-12-11 00:47:49 UTC (rev 2067)
@@ -773,5 +773,31 @@
}
}
#endregion
+
+ public bool GotoSelectionEnd ()
+ {
+ TextIter textStart;
+ TextIter textEnd;
+ if (GetSelectionBounds (out textStart, out textEnd))
+ {
+ MoveMark (SelectionBound, textEnd);
+ MoveMark (InsertMark, textEnd);
+ return true;
+ }
+ return false;
+ }
+
+ public bool GotoSelectionStart ()
+ {
+ TextIter textStart;
+ TextIter textEnd;
+ if (GetSelectionBounds (out textStart, out textEnd))
+ {
+ MoveMark (SelectionBound, textStart);
+ MoveMark (InsertMark, textStart);
+ return true;
+ }
+ return false;
+ }
}
}
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-12-10 00:57:58 UTC (rev 2066)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2004-12-11 00:47:49 UTC (rev 2067)
@@ -265,6 +265,14 @@
switch (state) {
case Normal:
switch (key) {
+ case Gdk.Key.End:
+ if (buf.GotoSelectionEnd ())
+ return true;
+ break;
+ case Gdk.Key.Home:
+ if (buf.GotoSelectionStart ())
+ return true;
+ break;
case Gdk.Key.Tab:
if (IndentSelection ())
return true;
More information about the Monodevelop-patches-list
mailing list