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 82110 - Menu item mnemonics don't work when menu is activated with mouse
Menu item mnemonics don't work when menu is activated with mouse
Status: RESOLVED DUPLICATE of bug 89336
Product: gtk+
Classification: Platform
Component: Widget: Other
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-05-17 19:55 UTC by Matt Wilson
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matt Wilson 2002-05-17 19:55:31 UTC
When a menu that has menu items that have mnemonics is activated with the
mouse, the user cannot use the keyboard mnemomic to activate the menu item
until the mouse is moved into the menu itself.

To reproduce:

start gtk-demo
bring up Item Factory
click on the File menu
Press 'n' to activate the New item
note that the item isn't activated
move mouse down to the first menu item
press 'n' to activte the New item
note that the New item is activated.
Comment 1 Owen Taylor 2002-05-17 20:49:00 UTC
I think the current behavior might be the right behavior. 

Think of:

 _File    _Edit  ...
 _New
 _Erase

If the focus is on the "File" menu, E should give you the
edit menu, not the Erase item.
Comment 2 Matt Wilson 2002-05-17 21:01:09 UTC
Too bad that's not the current behavior either...

I would argue that the behavior would be the same as other overloaded
mnemonics.  I.e., if there were:

_File     _Edit
_Exit

then pressing 'e' would toggle between Exit and Edit, requiring you to
hit an activation key to take the action.
Comment 3 Calum Benson 2002-06-07 17:32:51 UTC
Hmm... just double-checked this on Windoze to see what the behaviour
is there, and it's this:

when a menu item has focus, only the items on the menu can be accessed
by pressing the mnemonic.  Even if an item on the menu clashes with
the menu title itself, the item on the menu is activated.
Comment 4 Owen Taylor 2002-10-17 22:33:42 UTC
Tis is the same as bug 89336, just a different method of getting
to the "menu item on the menu bar is selected" state.


*** This bug has been marked as a duplicate of 89336 ***