[Monodevelop-patches-list] r1263 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Mar 26 18:53:13 EST 2004


Author: jluke
Date: 2004-03-26 18:53:13 -0500 (Fri, 26 Mar 2004)
New Revision: 1263

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
* Gui/SourceEditorView.xs: add DeleteLine for control + L and       4     shift + delete, bug #55993


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-26 22:53:13 UTC (rev 1262)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-26 23:53:13 UTC (rev 1263)
@@ -1,3 +1,8 @@
+2004-03-26  John Luke  <jluke at cfl.rr.com>
+
+	* Gui/SourceEditorView.xs: add DeleteLine for control + L and
+	shift + delete, bug #55993
+
 2004-03-26  Todd Berman  <tberman at sevenl.net>
 
 	* Gui/SourceEditorView.cs:

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2004-03-26 22:53:13 UTC (rev 1262)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2004-03-26 23:53:13 UTC (rev 1263)
@@ -139,6 +139,16 @@
 			Gtk.Global.PropagateEvent (this, evnt);
 		}
 
+		void DeleteLine ()
+		{
+			//remove the current line
+			TextIter iter = buf.GetIterAtMark (buf.InsertMark);
+			TextIter start_iter = buf.GetIterAtLine (iter.Line);
+			TextIter end_iter = buf.GetIterAtLine (iter.Line);
+			end_iter.ForwardToLineEnd ();
+			buf.Delete (start_iter, end_iter);
+		}
+
 		void TriggerCodeComplete ()
 		{
 			TextIter iter = buf.GetIterAtMark (buf.InsertMark);
@@ -191,6 +201,9 @@
 						if (UnIndentSelection ())
 							return true;
 						break;
+					case Gdk.Key.Delete:
+						DeleteLine ();
+						return true;
 				}
 				break;
 			case Control:
@@ -198,6 +211,9 @@
 					case Gdk.Key.space:
 						TriggerCodeComplete ();
 						return true;
+					case Gdk.Key.l:
+						DeleteLine ();
+						return true;
 				}
 				break;
 			}




More information about the Monodevelop-patches-list mailing list