Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344197 - Inconsistent handling of duplicate mnemonics in Dialogs and Menus
Summary: Inconsistent handling of duplicate mnemonics in Dialogs and Menus
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-28 16:24 EDT by Charles Eutsler CLA
Modified: 2019-11-14 02:19 EST (History)
1 user (show)

See Also:


Attachments
Dialog with duplicate mnemonics and a context menu with duplicate mnemonics. (4.38 KB, application/octet-stream)
2011-04-28 16:24 EDT, Charles Eutsler CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Eutsler CLA 2011-04-28 16:24:20 EDT
Created attachment 194315 [details]
Dialog with duplicate mnemonics and a context menu with duplicate mnemonics.

Duplicated mnemonics don't behave in SWT's dialogs the same way they are handled in native Windows dialog.

What I expect is that if multiple widgets in dialog use the same mnemonic character, multiple presses of Alt-mnemonic would give the next widget with that mnemonic the focus letting the user cycle through the widgets.

This behavior would be consistent with what happens in SWT menus where pressing a menu items' duplicated mnemonic will cycle through the items and you finally press the enter to select the one you want once it gets selected.

Before I'm told to change the mnemonics to all be unique, that often isn't easy nor possible. If you have short labels made up of the same letters it gets hokey to try to create new words just to get an new letter in the label to use as the mnemonic.

And sometimes the labels are generated dynamically and the first letter is used.

Attached is a Dialog that has four text widgets whose labels have duplicated mnemonics. Pressing Alt-N (even multiple times) gives focus only to the first text widget and Alt-T (multiple times) gives focus only to the second text widget. I expect Alt-N presses would go to the next widget with the "Name" label, cycling through the two widgets.

The first text widget has a context menu with items with duplicated mnemonics. In the case of the menu, multiple presses of duplicated mnemonic keys cycles through the items with that mnemonic. Pressing enter when the one I wish to invoke finally selects the item. This is the type of behavior I expect from dialogs.
Comment 1 Lars Vogel CLA 2019-11-14 02:19:36 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.