[haiku-development] Re: Debugging

2007/7/30, Christof Lutteroth <lutteroth@xxxxxxxxxxxxxxxxx>:

> Currently I am looking into bug #919. I used the Fonts preference app
> for testing, and something struck me: I am printing out the addresses of
> all the BMenus used by Fonts (BPopupMenus), and the BMenu on which
> BMenu::KeyDown is called upon key press is not one of them. It seems as
> if the KeyDown callback is called on some other (erroneous?) BMenu
> object. This should not be so, right? It would mean that something with
> the event dispatching in the app server goes wrong. Or am I mistaken?

The BPopUpMenus are added to a BMenuField, which unfortunately is a
very strange animal. Internally it uses a BMenuBar as a root menu, so
most probably, that menubar is the one on which BMenu::KeyDown() is
called.

Other related posts: