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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Fri Apr 30 15:26:38 EDT 2004


Author: tberman
Date: 2004-04-30 15:26:38 -0400 (Fri, 30 Apr 2004)
New Revision: 1554

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
enter works as you would expect now.


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-04-30 12:22:01 UTC (rev 1553)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-04-30 19:26:38 UTC (rev 1554)
@@ -1,3 +1,7 @@
+2004-04-30  Todd Berman  <tberman at sevenl.net>
+
+	* CodeCompletion/CompletionWindow.cs: properly handle enter.
+
 2004-04-29  Todd Berman  <tberman at sevenl.net>
 
 	* Gui/OptionPanels/CodeTemplatePanel.cs: match gtk-sharp from cvs.

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-04-30 12:22:01 UTC (rev 1553)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-04-30 19:26:38 UTC (rev 1554)
@@ -67,13 +67,23 @@
 				case ';':
 				case '(':
 				case '[':
+					//case (char) Gdk.Key.Return:
+					//case (char) Gdk.Key.ISO_Enter:
+					//case (char) Gdk.Key.Key_3270_Enter:
+					//case (char) Gdk.Key.KP_Enter:
+					control.SimulateKeyPress (ref e);
+					LostFocusListView (null, null);
+					return true;
+					
 				case (char) Gdk.Key.Return:
 				case (char) Gdk.Key.ISO_Enter:
 				case (char) Gdk.Key.Key_3270_Enter:
 				case (char) Gdk.Key.KP_Enter:
-					control.SimulateKeyPress (ref e);
-					LostFocusListView (null, null);
+					KeyPressEventArgs fake_args = new KeyPressEventArgs ();
+					fake_args.Args = new object[] { e };
+					ListKeypressEvent (null, fake_args);
 					return true;
+					
 				case (char) Gdk.Key.BackSpace:
 					num_in--;
 					control.SimulateKeyPress (ref e);




More information about the Monodevelop-patches-list mailing list