Kaynağa Gözat

* ComboBox.cs: Hookup the text controls keydown event so we get
those when the text control has the focus.


svn path=/trunk/mcs/; revision=55771

Jackson Harper 20 yıl önce
ebeveyn
işleme
23b3c8bc74

+ 5 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog

@@ -1,3 +1,8 @@
+2006-01-19  Jackson Harper  <[email protected]>
+
+	* ComboBox.cs: Hookup the text controls keydown event so we get
+	those when the text control has the focus.
+
 2006-01-18  Peter Dennis Bartok  <[email protected]> 
 
 	* Label.cs: Now using the base events instead of defining new ones;

+ 2 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ComboBox.cs

@@ -144,7 +144,7 @@ namespace System.Windows.Forms
 			MouseDown += new MouseEventHandler (OnMouseDownCB);
 			MouseUp += new MouseEventHandler (OnMouseUpCB);
 			MouseMove += new MouseEventHandler (OnMouseMoveCB);
-			KeyDown +=new KeyEventHandler(OnKeyDownCB);
+			KeyDown +=new KeyEventHandler(OnKeyDownCB);			
 		}
 
 		#region events
@@ -273,6 +273,7 @@ namespace System.Windows.Forms
 					textbox_ctrl.BorderStyle = BorderStyle.None;
 					textbox_ctrl.TextChanged += new EventHandler (OnTextChangedEdit);
 					textbox_ctrl.KeyPress += new KeyPressEventHandler(textbox_ctrl_KeyPress);
+					textbox_ctrl.KeyDown += new KeyEventHandler (OnKeyDownCB);
 					textbox_ctrl.GotFocus += new EventHandler(textbox_ctrl_GotFocus);
 					textbox_ctrl.LostFocus += new EventHandler(textbox_ctrl_LostFocus);