[wxGTK 2.8.0] accelerators not working
notnot
notnot at xs4all.nl
Fri Feb 23 17:41:58 PST 2007
>> I'm having troubles getting accelerators to work, via
>> SetAcceleratorTable().
>> See this minimal program that won't function properly on wxGTK, but
>> works
>> fine with wxMac and wxMSW. (Note that on wxMSW, the accelerator keys are
>> case sensitive, on wxMac they are not).
>
> Could you test of the code in src/gtk/window.cpp, lines 1040
> in CVS HEAD are reached at all? If you have any old version,
> just look for "#if wxUSE_ACCEL" and see of the code gets
> executed at all (and maybe see what's wrong),
Would it be alright to put a fprintf() there, recompile and reinstall
wxWidgets, then run my app to find out? Is there a better way?
I tried your other suggestion to add a panel to the frame, but it does
not solve the problem. Does this panel require special event handling
to intercept the accelerators in wxGTK?
The app I am working on has a wxGLCanvas that fills up the client area
of the frame, and this canvas does receive key strokes just fine. Menu
accelerators that have been specified when creating menu items also
work fine on wxGTK. Only the accelerators created by
SetAcceleratorTable() for the frame don't work...
Erwin
More information about the wx-users
mailing list