From: SourceForge.net <no...@so...> - 2006-07-25 12:04:05
|
Bugs item #746267, was opened at 2003-05-31 04:38 Message generated for change (Comment added) made by das You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=746267&group_id=12997 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 55. [focus] Group: None Status: Closed Resolution: Duplicate Priority: 4 Submitted By: Russell Owen (reowen) Assigned to: Daniel A. Steffen (das) Summary: Possible focus bug in Aqua Tk 8.4.2 Initial Comment: There is an apparent focus bug in Aqua Tk 8.4.2 running on MacOS X 10.2.6. - Run the following code (which started as a pop-up help system but has been stripped down to just show the bug). - Click on the entry widget, so it received focus - Move the mouse a bit within the entry widget, so the pop-up help window is displayed. (Make sure the mouse is not over where the help window pops up else it will go away instantly.) - Type one or more characters. - On MacOS X the code *claims* that the entry widget .e still has focus but this is a lie. Keystrokes are actually ignored, and it seems likely they are going to the pop-up help window instead of the entry widget that allegedly still has focus. Notes: - Adding code that tells Tk to return the focus to the entry does not help. One still cannot type in the entry widget. Maybe this is not surprising, since tcl/tk seems to think the entry widget already has focus. - The code runs fine under my unix setup: (unix Tcl/Tk 8.4.1, MacOS X 10.2.6, Apple's X11 beta 3), BUT it starts failing in a similar way if I remove the "wm overrideredirect" command. - Thus perhaps the bug is more pervasive than MacOS, and/or it's not a bug and I'm going about this all wrong. entry .e pack .e bind .e "<Motion>" { destroy .t puts "show help; focus is [focus]" toplevel .t wm overrideredirect .t 1 wm transient . message .t.m -text "this is a help msg" pack .t.m puts "help is showing; focus is [focus]" } bind .e "<Leave>" { puts "leave" destroy .t } bind .e "<KeyPress>" { puts "keypress" destroy .t } ---------------------------------------------------------------------- >Comment By: Daniel A. Steffen (das) Date: 2006-07-25 22:04 Message: Logged In: YES user_id=90580 should have been closed long ago ---------------------------------------------------------------------- Comment By: Daniel A. Steffen (das) Date: 2006-07-25 22:02 Message: Logged In: YES user_id=90580 should have been closed long ago ---------------------------------------------------------------------- Comment By: Jim Ingham (wolfsuit) Date: 2005-03-13 14:10 Message: Logged In: YES user_id=169107 This is a dup of 1124237. Same fix for that bug fixes this as well. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=746267&group_id=12997 |