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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78348 --- shadow/78348 2006-05-09 16:47:13.000000000 -0400 +++ shadow/78348.tmp.13832 2006-05-11 00:30:49.000000000 -0400 @@ -1,22 +1,22 @@ Bug#: 78348 Product: Mono: Class Libraries Version: 1.1 -OS: +OS: unknown OS Details: WinXP Status: NEW Resolution: -Severity: +Severity: Unknown Priority: Normal Component: Windows.Forms AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] TargetMilestone: --- URL: -Summary: Textbox context menu focus behavior +Summary: Context menu focus behavior Description of Problem: The textbox context menu steals focus from the form Steps to reproduce the problem: 1. right click inside a textbox to show the context menu @@ -26,6 +26,38 @@ Expected Results: As in Windows, the form remains active How often does this happen? Always + +------- Additional Comments From [EMAIL PROTECTED] 2006-05-11 00:30 ------- +It rather looks like Control.ContextMenu matter. Here is a simplified +repro: + +using System; +using System.Windows.Forms; + +public class test : Form +{ + public static void Main () + { + Application.Run (new test ()); + } + + public test () + { + ContextMenu m = new ContextMenu (); + m.MenuItems.Add (new MenuItem ("testmenu")); + m.Popup += delegate (object o, EventArgs e) { + Console.WriteLine (Focused); + }; + ContextMenu = m; + } +} + + +Since it prints "True" on both MS.NET and Mono, it does not really +"lose the focus". + +However, the behavior is a bit different. On MS.NET, we can close the +focused Form when the context menu is popped up, while we can't on Mono. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
