Mnemonics are created, AFAIK, in the code when the menu items are constructed. There are various ways this can be done, but I suspect it cannot be undone if you all you have is a ready to run application.
In GTK2, the simplest way to do this was to put an underscore in front of the desired letter that would act the mnemonic (e.g. "_File" when defining a "File" menu item). There are other ways too, and GTK3 may have changed quite a bit here. On Thu, Dec 8, 2016 at 11:42 PM, John Parejko <parej...@gmail.com> wrote: > I didn't write the app. I want to be able to disable the mnemonics > globally, and there doesn't appear to be a way to do that in gtk-3. > > John > > On 12/08/2016 03:38 PM, Paul Davis wrote: > >> Don't create mnemonics when creating menu items. That's all. Our app >> (Ardour) is GTK (2) but we never define any menu mnemonics, and >> consequently there are no Alt-* bindings created by GTK (we need all >> available bindings for the app's own control and management. >> >> On Thu, Dec 8, 2016 at 11:23 PM, John Parejko <parej...@gmail.com >> <mailto:parej...@gmail.com>> wrote: >> >> Is there any way to prevent gtk from taking over "alt-*" handling >> (e.g. alt-f for _File menu, alt-e for _Edit menu) from the application? I >> can see that some users use that, but others (like me) prefer to rebind alt >> to other functionality (e.g. find in Firefox). >> >> Looking into this launchpad ticket [1], it appears that gtk is the >> root cause here, which is why I'm bringing it up on this list. >> >> 1: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1113420 < >> https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1113420> >> >> There are a handful of suggestions on that ticket, none of which seem >> to apply to gtk-3. Is there another way to reconfigure gtk in this regard? >> It seems to be a problem across a variety of window managers (I've seen it >> in xfce4/xfwm, unity, and lxde/openbox). >> >> I didn't see any tickets filed about this in the gtk bug tracker, but >> searching for "alt menu" resulted in a lot f hits... >> >> Thank you, >> John >> _______________________________________________ >> gtk-list mailing list >> gtk-list@gnome.org <mailto:gtk-list@gnome.org> >> https://mail.gnome.org/mailman/listinfo/gtk-list < >> https://mail.gnome.org/mailman/listinfo/gtk-list> >> >> >>
_______________________________________________ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list