[Monodevelop-patches-list] r918 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: CodeCompletion InsightWindow
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sat Feb 14 22:09:56 EST 2004
Author: tberman
Date: 2004-02-14 22:09:56 -0500 (Sat, 14 Feb 2004)
New Revision: 918
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/InsightWindow/InsightWindow.cs
Log:
some fixing
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs 2004-02-15 02:38:26 UTC (rev 917)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs 2004-02-15 03:09:56 UTC (rev 918)
@@ -65,6 +65,17 @@
}
}
}
+
+ protected override bool OnKeyPressEvent (ref Gdk.EventKey e)
+ {
+ if ((char)e.Key == '.') {
+ control.SimulateKeyPress (ref e);
+ LostFocusListView (null, null);
+ return true;
+ }
+ return base.OnKeyPressEvent (ref e);
+ }
+
void ListKeypressEvent(object sender, KeyPressEventArgs ex)
{
Gdk.Key key = ex.Event.Key;
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/InsightWindow/InsightWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/InsightWindow/InsightWindow.cs 2004-02-15 02:38:26 UTC (rev 917)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/InsightWindow/InsightWindow.cs 2004-02-15 03:09:56 UTC (rev 918)
@@ -171,17 +171,17 @@
protected override bool OnKeyPressEvent (ref Gdk.EventKey e)
{
- //if (DataProvider != null && DataProvider.CharTyped()) {
- // CloseCurrentDataProvider();
- //}
- char val = (char)e.Key;
+ bool rval;
if (ProcessTextAreaKey (e.Key) == false) {
- //control.Buffer.InsertAtCursor (val.ToString ());
control.SimulateKeyPress (ref e);
- return true;
+ rval = true;
} else {
- return base.OnKeyPressEvent (ref e);
+ rval = base.OnKeyPressEvent (ref e);
}
+ if (DataProvider != null && DataProvider.CharTyped ()) {
+ CloseCurrentDataProvider ();
+ }
+ return rval;
}
void CaretOffsetChanged(object sender, EventArgs e)
More information about the Monodevelop-patches-list
mailing list