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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Mar 25 15:16:29 EST 2004


Author: tberman
Date: 2004-03-25 15:16:28 -0500 (Thu, 25 Mar 2004)
New Revision: 1240

Added:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
fixing bug wrt backspacing:

now we close the code completion window when you backspace across the ., not any time you hit backspace.


Added: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-25 07:35:45 UTC (rev 1239)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-25 20:16:28 UTC (rev 1240)
@@ -0,0 +1,4 @@
+2004-03-25  Todd Berman  <tberman at sevenl.net>
+
+	* CodeCompletion/CompletionWindow.cs: add proper checking on when
+	to close the window based on backspacing.

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-25 07:35:45 UTC (rev 1239)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-25 20:16:28 UTC (rev 1240)
@@ -53,10 +53,16 @@
 			case ';':
 			case '(':
 			case '[':
-			case (char) Gdk.Key.BackSpace:
 				control.SimulateKeyPress (ref e);
 				LostFocusListView (null, null);
 				return true;
+			case (char) Gdk.Key.BackSpace:
+				control.SimulateKeyPress (ref e);
+				insertLength--;
+				if (insertLength == -1) {
+					LostFocusListView (null, null);
+				}
+				return true;
 			}
 			return base.OnKeyPressEvent (e);
 		}




More information about the Monodevelop-patches-list mailing list