Community
Participate
Working Groups
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.
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.