Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kEventCommandUpdateStatus, slow typing, and menu key commands that don't contain the command key



AlphaX is still largely WNE based and it is absolutely littered with menu key combinations that do not contain the command key (Alpha borrows a lot of bindings from emacs, as well as inventing a multitude of its own). Up until now, we've had application wide handlers for kEventMenuEnableItems and kEventCommandUpdateStatus that just return noErr and typing speed is fine.

Lately, I've been trying to implement the YAST control in some modal windows and for the life of me couldn't figure out why it wasn't getting an Edit menu. I finally remembered these stub handlers of ours and changed them to eventNotHandled; sure enough, YAST gets its Edit menu and it updates the way it's supposed to, but typing (both in YAST and everywhere else in my app) slows to a crawl.

I've put a breakpoint at _InvalidateMenuKeyCache and it's not being called as I type keys, only as menus get shifted around. IsMenuKeyEvent is called for every keypress, though, so I guess that's because of my non-command-key-modifier menu items? Is there anything we can do? (getting rid of the offending menu keys isn't an option; I'd be burned at the stake)
--


Jonathan E. Guyer
<http://www.his.com/jguyer/>
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Correct way to handle kEventCommandUpdateStatus? (From: Jim Correia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.