[Mono-bugs] [Bug 81569][Nor] New - Some keys not generating events from the ListView

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 8 16:57:55 EDT 2007

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 dan.maser at inin.com.


--- shadow/81569	2007-05-08 16:57:55.000000000 -0400
+++ shadow/81569.tmp.10565	2007-05-08 16:57:55.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 81569
+Product: Mono: Class Libraries
+Version: 1.2
+OS: RHEL 2.1
+OS Details: RHEL WS 4, kernel 2.6.9-42 on i686 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: Dan.Maser at inin.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Some keys not generating events from the ListView 
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+I have two event handlers on the ListView: KeyDown and KeyPress.  They 
+work on MS CLR, but on mono some of the keys generate events and some 
+don't.  The results are described below.
+Steps to reproduce the problem:
+1. Add a KeyPress handler to a ListView with this impl:
+System.Console.WriteLine(String.Format("KeyPress Event! KeyChar='{0}'", 
+2. Add a KeyDown handler to a ListView with this impl:
+System.Console.WriteLine(String.Format("KeyDown Event! KeyCode='{0}'", 
+3. Run the app, give the ListView focus and press the following keys: 
+Esc, LeftArrow, RightArrow, Enter, Asterisk, Space, Plus, Minus, '1'.
+Actual Results:
+On MS CLR, everything works as expected. The Esc, LeftArrow, RightArrow, 
+and Enter come thru on the KeyDown handler just fine.  The Asterisk, 
+Space, Plus, Minus, etc come thru on the KeyPress handler just fine.  On 
+mono (running on linux) what I see is this:
+  The Esc and Enter fire the KeyDown, but Left and Right Arrow do not.
+  The Asterisk, Plus, Minux fire the KeyPress, but the Space does not.
+Expected Results:
+Same behavior with ListView on MS CLR and mono for Left Arrow, Right 
+Arrow, Space.
+How often does this happen? 
+Every time.
+Additional Information:
+I'm using mono built from 4/30/07 daily test tarball.
+I can submit a test project for this if you like, but I suspect you won't 
+need one.  It's trivial to slap a ListView on a blank form and add the 
+handler impls above.

More information about the mono-bugs mailing list