[interfacekit] Re: Helping out

Hello & welcome Christof,

> I started looking into bug #919, which is essentially the non-working 
> keyboard handler for the BMenuField. I have a rough idea what's going on, 
> but this widget looks quite complicated and I will probably need some 
> help. I have mostly studied the Fonts pref app, and still haven't quite 
> understood how the BPopupMenu given to a BMenuField is activated in 
> BMenuBar::StartMenuBar. Once the BPopupMenu is shown, the BMenu::KeyDown 
> method seems to be called on the BMenuBar of the BMenuField instead of 
> the BPopupMenu. Maybe you could point me into the right direction here, 
> or, alternatively, suggest any other task that I might help with.

Actually you have gotten pretty far, this is certainly the root of the 
problem. But I only know that much myself, so I am not of great help. Axel 
Dörfler has written the event dispatching code in the app_server. Something 
seems to make it think it should still dispatch to the BMenuBar instead of 
the menu. One problem with this bug is we should know if it is indeed the 
app_server's fault, or the menu implementation. For that, we need to know 
how our BMenuField behaves under R5 and if it works properly there. That 
can be a bit tricky, but maybe you can just copy all the relevant sources 
into a simple test app for R5, where you can find out if it works in this 
context. Then you know it's our app_server. Maybe Stefano knows if BMenu 
worked properly with regards to keyboard navigation when it was originally 
written. I was not around at that time.

Best regards,
-Stephan

Other related posts: