Re: discriminating accelerators



Marc Santhoff wrote:

Hi!

In my app I want to reach the following:

- one toplevel window
- a notebook with several pages for input
- on the notebook pages some buttons with accelerators attached
- some of the accelerator keys are the same and should behave
differently

May question:

If page one has an accel key "F1" and page two either, how can i prevent
page two form taking over the accelerator?

It seems to be always the last created who wins. But actually the active
page in the notebook should be steering the reaction on the keypress.

This looks a lot like this bug:
  http://bugzilla.gnome.org/show_bug.cgi?id=122912

Gnome bugzilla is currently down, so you can't follow that link right now. The bug was an error in starting accelerators where a widgets visibility was not checked. I believe that it is fixed in gtk+-2.4.0.

--
Tim Evans
Applied Research Associates NZ
http://www.aranz.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]