GNOME Bugzilla – Bug 120034
Accelerator editing widget / Disable Mnemonics via gtkrc
Last modified: 2014-09-16 04:01:47 UTC
It right now is impossible to assign certain dynamic shortcuts when the key you want to assign is also a mnemonic in that submenu. For example it is impossible to assign the key "B" to the Gaussian Blur plugin, since if you hover over the corresponding menu entry and press "B" the "_Blur"-Plugin gets invoked (which happens to have the Mnemonic "B" assigned). I am not sure how to solve this problem. From reports from other users I got the impression, that the dynamic keyboard shortcuts are a killer feature of the Gimp and should not be treated with care. Random ideas: - Disable mnemonics if the menu has been opened with the mouse - require the Mnemonic-Modifier for all the mnemonic navigation. Disclaimer: I do not like the Mnemonics, I'd love to be able to disable them.
This seems to be a GTK+ bug; I would suggest we reassign it.
In the long run we should consider to write a menu editor. Since I don't see how this problem could be solved in GIMP, I will reassign the report to GTK+. It was originally filed against GIMP-1.3.18.
A menu editor should probably done in conjunction with a toolbar editor, like the one in EggToolbarEditor. For some inspiration on how one can go overboard with such features, I just looked at Excel. They even have a little icon editor to draw new icons on the fly!!!
[ Really thought there was a already a bug on this, but I can't find it. ] Mnemonics have to win over key binding editing; the only real way to fix that is to have a separate dialog for editing menu accels... maybe a little worse for the GIMP for editing the key bindings, but better for everything else. Of course, the GIMP *could* offer a feature to turn off its mnemonics - that's not a GTK+ question.
It would be cool to be able to disable Mnemonics via the gtkrc, similiar to the possibility to disable dynamic shortcut editing. (That makes it a GTK+-Thing...) Also I don't exactly see why the Mnemonics *have* to win over rebinding, since the behaviour could depend on the way a menu got opened.
Ok, the other bug report dealing with this issue apparently is bug #72375. I'll leave it up to the GTK+-team to mark the bugs accordingly.
*** Bug 140357 has been marked as a duplicate of this bug. ***
*** Bug 142103 has been marked as a duplicate of this bug. ***
*** Bug 143060 has been marked as a duplicate of this bug. ***
In GIMP the setting that enables dynamic shortcuts should disable mnemonics as well. For me this was the killer feature too, a seperate shortcut editor would spoil it.
I've installed gimp 2.0.3 and still coulnd't find the mnemonic-disable button. Please add this! BTW: After opening 3 sub-levels of a menu, why would one look at the keyboard and press a key, which takes more time as just clicking the 4th time on the item? I'm still not convinced of mnemonics.
I couldn't stand the endless ranting any more and implemented this for GIMP: 2004-07-28 Michael Natterer <mitch@gimp.org> Enabled disabling all menu mnemonics. Addresses bug #120034: * app/config/gimpguiconfig.[ch] * app/config/gimprc-blurbs.h: added boolean RESTART property "menu-menonics". * app/gui/preferences-dialog.c: added a GUI for it. * app/widgets/gimpactiongroup.[ch]: added boolean CONSTRUCT_ONLY property "mnemonics". (gimp_action_group_add_*_actions): call gimp_strip_uline() on the actions' labels if mnemonics is FALSE. * app/widgets/gimpactionfactory.[ch] * app/actions/actions.c: pass gui_config->menu_menmonics to all action groups.
Don't know how I managed to set the bug to NEEDINFO. Sorry...
Thank you for doing app/widgets/whatsoever and I'm sorry for my overblown english - I learned that in school. ;-)
I dowloaded it, tryied it and it worked for me. I am using Gentoo, kernel 2.6.5, programs as in stable version of Gentoo (no ~x86)
Adding keynav keyword.
Marking AP4 to reflect accessibility impact.
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs. Filter on "SUN A11Y SPAM" to ignore.
Sascha Becher wrote: "BTW: After opening 3 sub-levels of a menu, why would one look at the keyboard and press a key, which takes more time as just clicking the 4th time on the item? I'm still not convinced of mnemonics." You've missed the point entirely -- people who use mnemonics are those (like myself), who prefer to use the keyboard, either because it's faster or because the mouse is inconvenient (as it is, for example, on many laptops). They wouldn't be taking their hands off the mouse -- their hands would never have been on their mouse -- and most likely they wouldn't have to "look at the keyboard" either, since they're able to touch type. For me, even having to use the arrow keys is a frustration as it involves removing my hands from their normal position on the keyboard. For that reason, I consider *any* menu item without a mnemonic rather broken. And in fact, I've had trouble when I've bound keys because I assumed the mnemonic was something other than what it was and ended up binding the first menu item to my incorrect-guess about the mnemonic (see <a href="http://bugzilla.gnome.org/show_bug.cgi?id=160431">bug 160431</a>).
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
closing old bugs