After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120034 - Accelerator editing widget / Disable Mnemonics via gtkrc
Accelerator editing widget / Disable Mnemonics via gtkrc
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other other
: Normal enhancement
: Medium feature
Assigned To: gtk-bugs
gtk-bugs
AP4
: 140357 142103 143060 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-16 20:00 UTC by Simon Budig
Modified: 2014-09-16 04:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Budig 2003-08-16 20:00:17 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.
Comment 1 Sven Neumann 2003-08-16 23:08:36 UTC
This seems to be a GTK+ bug; I would suggest we reassign it.
Comment 2 Sven Neumann 2003-08-20 10:03:36 UTC
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.
Comment 3 Matthias Clasen 2003-08-20 10:26:41 UTC
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!!!
Comment 4 Owen Taylor 2003-08-20 19:14:04 UTC
[ 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.
Comment 5 Simon Budig 2003-08-20 23:08:11 UTC
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.
Comment 6 Simon Budig 2004-03-21 03:31:12 UTC
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.
Comment 7 Henrik Brix Andersen 2004-04-17 19:42:31 UTC
*** Bug 140357 has been marked as a duplicate of this bug. ***
Comment 8 Sven Neumann 2004-05-07 15:15:13 UTC
*** Bug 142103 has been marked as a duplicate of this bug. ***
Comment 9 Sven Neumann 2004-05-24 13:19:18 UTC
*** Bug 143060 has been marked as a duplicate of this bug. ***
Comment 10 Martin Renold 2004-07-03 22:02:01 UTC
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.
Comment 11 Sascha Becher 2004-07-27 16:14:45 UTC
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.
Comment 12 Michael Natterer 2004-07-27 22:18:16 UTC
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.
Comment 13 Michael Natterer 2004-07-27 22:20:34 UTC
Don't know how I managed to set the bug to NEEDINFO. Sorry...
Comment 14 Sascha Becher 2004-07-28 14:56:27 UTC
Thank you for doing app/widgets/whatsoever
and I'm sorry for my overblown english - I learned
that in school. ;-)
Comment 15 Gilhad 2004-09-23 16:15:00 UTC
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) 
Comment 16 Calum Benson 2004-10-21 12:48:26 UTC
Adding keynav keyword.
Comment 17 Calum Benson 2004-10-21 16:16:29 UTC
Marking AP4 to reflect accessibility impact.
Comment 18 Calum Benson 2004-10-21 16:47:48 UTC
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs.
 Filter on "SUN A11Y SPAM" to ignore.
Comment 19 Thomas M. Hinkle 2005-01-02 18:05:41 UTC
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>).
Comment 20 Calum Benson 2006-04-26 17:12:12 UTC
Apologies for spam... ensuring Sun a11y folks are cc'ed on all current accessibility bugs.
Comment 21 Matthias Clasen 2014-09-16 04:01:47 UTC
closing old bugs