From: SourceForge.net <no...@so...> - 2006-05-12 18:35:32
|
Bugs item #1481503, was opened at 2006-05-04 10:45 Message generated for change (Comment added) made by das You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1481503&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: 66. Aqua Window Operations Group: current: 8.4.13 >Status: Closed >Resolution: Fixed Priority: 9 Submitted By: Randolf Schultz (randolf) Assigned to: Daniel A. Steffen (das) Summary: TkAqua first Apple-, event swallowed Initial Comment: In my application I define a ::tk::mac::ShowPreferences procedure. This procedure is only called on the second (and subsequent) presses of the Apple-, key combination. I expect that it works for the first use of Apple-, also. Note that the corresponding menu entry is not flashing, when Apple-, is used for the first time. Application: http://sf.net/projects/ayam best regards, Randolf, -- http://www.ayam3d.org/ ---------------------------------------------------------------------- >Comment By: Daniel A. Steffen (das) Date: 2006-05-13 04:35 Message: Logged In: YES user_id=90580 fix committed to HEAD and core-8-4-branch this issue appears to be caused by a bug with kHICommandPreferences in Carbon: the first call to IsMenuKeyEvent returns false for the preferences menu item key shorcut event (even if the corresponding menu item is dynamically enabled by a kEventCommandUpdateStatus handler), unless the kHICommandPreferences menu item has previously been enabled manually (which we now do in TkMacOSXInitMenus). ---------------------------------------------------------------------- Comment By: Randolf Schultz (randolf) Date: 2006-05-04 22:35 Message: Logged In: YES user_id=125929 How to reproduce: create a script prefs.tcl like -snip- proc ::tk::mac::ShowPreferences {args} {puts ShowPrefs} -snap- then: >cd Tk.framework/Resources/Wish.app/Contents/MacOS >./Wish /pathto/prefs.tcl Wish opens, select the Wish window, press <Apple+,>: nothing happens press <Apple+,> again: ShowPrefs is printed to the shell. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=1481503&group_id=12997 |