Problems with underlined accelerator keys
- From: Damon Chaplin <damon karuna freeserve co uk>
- To: Gtk Developers List <gtk-devel-list redhat com>
- Subject: Problems with underlined accelerator keys
- Date: Sat, 28 Aug 1999 15:34:12 +0100
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
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.
] [Thread Prev