This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm using NB 5.5 beta 2 and found that popup menu in Projects view has just one mnemonic :(while it contains 20 items). And this is very annoying to scroll down in this menu (e.g. "set main project" is in the middle of this popup).
BTW for the case of Set Main Project, you can just use Alt-F M from the main menu.
yes I can, but what about other? And what is the point to have context menu if it is hard to use it (at least for people who do not like mouse as me :)
It is the policy not to use mnemonics in popup menus because items in popup menus are dynamicly added to the popup menu (before its paint) according to the context. It is not possible to forbid having 2 menu items with same mnemonic so that no menu item has mnemonic by this strategy. This behavior is not only in projects module but in all ide. Passing this issue to ide category.
It is an interesting approach. You do not allow mnemonics in popups to not have the same mnemonic twice, but you do have a lot if Alt+letter shortcuts which may conflict with mnemonics in menu bar ;)
Oleg, could you please be more specific and tell us mnemoics that have conflicts in menu bar. Such conflicts are issues and must be filed in issuezilla and fixed of course. Thanks in advance.
Well, there is none now. (At some (rather early) point "Profiler" menu had Alt-O mnemonic which conflicts with go-to-source shortcut.) My comment, not about existing conflict, but about some policies inconsistence.
This is the same problem as described in issue #16150. Changing this issue as duplicate of the original one. *** This issue has been marked as a duplicate of 16150 ***
I've reopened that one.
Actually this one is not dupe and can be fixed now since issue 16150 is not valid anymore in JDK[567] (i.e. it is fixed). See comment from jglick Wed Sep 6 13:43:00 +0000 2006 in the issue 16150. I suggest to make this an umbrella and a central place for discussion in the case anybody see the reason why this should not be fixed. I'll file a bug against j2se and apisupport projects. Fix should be easy, just adding appropriate mnemonics to resources used by LogicalViewProvider.createLogicalView().getActions(boolean) in each project-type.
Make sure the contextual menu shows mnemonics only if the menu is invoked by keyboard.
"Make sure the contextual menu shows mnemonics only if the menu is invoked by keyboard." - I doubt this is currently the case. If this is required, a separate bug needs to be filed in openide, subcomponent AWT/Swing, as that is orthogonal to adding mnemonics to particular menu items.
Actually I've filed such bug some time ago (look at 70255).
I am not sure if issue #70255 is exactly what Jano was talking about, though it may be related. Jano was saying, independent of L&F, mnemonics should be shown iff S-F10 was used to post the popup.
Martine, have you filed those issues against each project type? Should this issue be marked as UMBRELLA then?
Have done just now.
moving opened issues from TM <= 6.1 to TM=Dev
Lukasi, you are perm-UI specialist, is this still valid? The only mnemonic i see in popup is F - Find...
I have no idea what the UI spec requests or if this issue is still to be fixed.
I don't have any idea if this issue is to be fixed either. But it certainly does not classify to P3 according to current bug priority guidelines. What I know for sure is that permanent UI specs are not in place anymore so they'll not help us :-(.
isn't this already fixed ?
No, why do you say that? There is a mnemonic only for Find last I checked.
Jesse, why is there mnemonic for Find action only? Do you know how to fix this issue in some general way? Thanks.
(In reply to comment #22) > why is there mnemonic for Find action only? No particular reason; it just happens to be the same Action as one in the main menu which has a mnemonic. > Do you know how to fix this issue in some general way? No, just by fixing each possible menu item. I still have no clear idea of whether the mnemonics are wanted or unwanted.
Hello, IMO, the mnemonics are not entirely necessary. I am a blind user of netbeans and JDeveloper, and I know that in the case of JDeveloper, it was decided that since there are so many conflicts between potential mnemonic keys and other shortcuts given the number of languages that JDeveloepr was going to be translated into, that it was better to just not force the issue. It is true that at times it would be hlepful to have the mnemonics when a dialog or menu is quite large or cluttered, but usually when a user gets familiar with the products, he can navigate quite quickly even without the mnemonics.
Mnemonic conflicts are managed by Swing; pressing the key repeatedly should cycle between the alternatives. Anyway it seems there is no general desire for the mnemonics. So in core-main #d0b8f33f712a I made a general change that should suppress mnemonics on context menu items created using the normal Actions.connect, used by default if you just add an Action to a popup list. Editor context menu items do not seem to use this, and items in submenus like Local History and Refactoring will not necessarily pick up the change, but at least the mnemonics are gone from e.g. Find on a project, Properties on a source file, etc. You can always override this behavior with a custom PopupPresenter, or more simply by setting the action property popupText to some value including an ampersand. If this change is unwanted, it can of course be reverted, but then the issue becomes _adding_ mnemonics to a lot of actions which currently lack them, to make context menus look more consistent. BTW it seems that the Mac's Aqua L&F was already suppressing mnemonics on context menu items; or at least so I gather from unit tests. (I have no Mac to check on myself.)
Integrated into 'main-golden', will be available in build *201012020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d0b8f33f712a User: Jesse Glick <jglick@netbeans.org> Log: #83952: do not show mnemonics on context menu items by default.