[Mono-bugs] [Bug 78377][Min] New - ComboBox keyboard selection

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 11 23:35:26 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by atsushi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78377

--- shadow/78377	2006-05-11 23:35:26.000000000 -0400
+++ shadow/78377.tmp.7938	2006-05-11 23:35:26.000000000 -0400
@@ -0,0 +1,51 @@
+Bug#: 78377
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Windows.Forms
+AssignedTo: mkestner at ximian.com                            
+ReportedBy: atsushi at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ComboBox keyboard selection
+
+Currently ComboBox behavior is not as easy to input values as that of MS.NET:
+
+- When ComboBox gets focus, on .NET it selectAlls the text so that just
+typing characters clears the value.
+- When DropDownStyle is DropDown, when we expand the drop down list, and
+when there is such an item that starts with the same character as that of
+current entry, its current entry will be lost and its selected text becomes
+the existing entry. The search is not limited to ASCII input.
+- When DropDownStyle is DropDownList, when we type characters it tries to
+find an entry from current item index that starts with the same character.
+Say, if there is an entry "Z" and when we type 'Z' in the ComboBox, its
+cursor simply moves there.
+
+
+using System;
+using System.Windows.Forms;
+
+public class Test : Form
+{
+	public static void Main ()
+	{
+		Application.Run (new Test ());
+	}
+
+	public Test ()
+	{
+		ComboBox cb = new ComboBox ();
+		cb.DropDownStyle = ComboBoxStyle.DropDownList;
+		cb.DataSource = new string [] {"A", "B1", "B2", "C", "D", "D", "Z", "T1",
+"B3", "\u3042\u3044"};
+		Controls.Add (cb);
+	}
+}


More information about the mono-bugs mailing list