Problems with underlined accelerator keys




Hi,

I've recently added support for underlined accelerator keys in Glade so
that if you have a label with '_Hello' and an entry next to it, then
pressing Alt + H will set the focus to the entry.

However, there is a problem if you use something like a notebook, since
you may have underlined accelerator keys on several pages and some of them
may clash.

The general problem is that you typically only want these sorts of
accelerator keys to be active while the label or the target widget is visible.

One solution may be to add another flag to GtkAccelFlags,
GTK_ACCEL_ONLY_IF_VISIBLE. Then when looking up an accelerator, these entries
are skipped if they are not currently visible.


Damon



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