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.
Created attachment 105002 [details] Screenshot attached... Product Version: NetBeans IDE Dev (Build 201012160001) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb) I cannot invoke scroll up/down action from keyboard. It is because there are 2 actions that use Ctrl+Up/Down shortcut (Navigate to Previous/Next Occurence and Scroll Up/Down). The Scroll Up/Down calling is shadowed by the Navigate to Previous/Next Occurence when pressing the shortcut.
This is strange I have default setup on Mac and Next Occurrence is Meta-G. What is your keyboard profile?
It is reproducible on the Mac machine of the colleague too. Here are the steps to reproduce: -download latest .zip with netbeans (j2se distribution of 201101180000) -unzip and start with clear userdir -create new j2se project -push Ctrl+Up -->> in the status line there appears "There is no ocurrence to navigate to". So that it is clear that Ctrl+Up/Down shortcut calls the Previous/Next occurence. The required behavior is to scroll Up/Down.
http://hg.netbeans.org/jet-main/rev/a683d61031a9
David, have a look at issue #125741 As you know we have not two, but in much more [1] actions with the same name (if all languages are ON) May be it's a good time to fix issue #125741? [1] ./cnd.highlight/src/org/netbeans/modules/cnd/highlight/resources/DefaultKeyBindings.xml:50: <bind actionName="cpp-prev-marked-occurrence" key="O-UP"/> ./cnd.highlight/src/org/netbeans/modules/cnd/highlight/semantic/actions/Bundle.properties:45:cpp-prev-marked-occurrence=Navigate to Previous Occurrence ./cnd.highlight/src/org/netbeans/modules/cnd/highlight/semantic/actions/GotoPrevOccurrenceAction.java:59: private static final String actionName = "cpp-prev-marked-occurrence"; // NOI18N ./csl.api/src/org/netbeans/modules/csl/api/Bundle.properties:16:csl-prev-marked-occurrence=Navigate to Previous Occurrence ./csl.api/src/org/netbeans/modules/csl/api/GoToMarkOccurrencesAction.java:85: private static final String prevActionName = "csl-prev-marked-occurrence"; // NOI18N ./csl.api/build/classes/org/netbeans/modules/csl/api/Bundle.properties:16:csl-prev-marked-occurrence=Navigate to Previous Occurrence ./html.editor/src/org/netbeans/modules/html/editor/resources/DefaultKeyBindings.xml:53: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./html.editor/build/classes/org/netbeans/modules/html/editor/resources/DefaultKeyBindings.xml:53: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./java.editor/src/org/netbeans/modules/java/editor/resources/DefaultKeyBindings-Mac.xml:64: <bind actionName="java-prev-marked-occurrence" key="O-UP"/> ./java.editor/src/org/netbeans/modules/java/editor/resources/DefaultKeyBindings.xml:69: <bind actionName="java-prev-marked-occurrence" key="O-UP"/> ./java.editor/src/org/netbeans/modules/java/editor/resources/layer.xml:285: <file name="java-prev-marked-occurrence.instance"> ./java.editor/src/org/netbeans/modules/java/editor/semantic/Bundle.properties:61:java-prev-marked-occurrence=Navigate to Previous Occurrence ./java.editor/src/org/netbeans/modules/java/editor/semantic/GoToMarkOccurrencesAction.java:73: private static final String prevActionName = "java-prev-marked-occurrence"; // NOI18N ./javascript.editing/src/org/netbeans/modules/javascript/editing/DefaultKeyBindings.xml:56: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./javascript.editing/build/classes/org/netbeans/modules/javascript/editing/DefaultKeyBindings.xml:56: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./php.editor/src/org/netbeans/modules/php/editor/resources/DefaultKeyBindings-Mac.xml:57: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./php.editor/src/org/netbeans/modules/php/editor/resources/DefaultKeyBindings.xml:56: <bind actionName="csl-prev-marked-occurrence" key="O-DOWN"/> ./ruby/src/org/netbeans/modules/ruby/DefaultKeyBindings-Mac.xml:64: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/> ./ruby/src/org/netbeans/modules/ruby/DefaultKeyBindings.xml:58: <bind actionName="csl-prev-marked-occurrence" key="O-UP"/>
I am reopening because I can still reproduce in the following build: Product Version: NetBeans IDE Dev (Build 201101270001) Java: 1.6.0_22; Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)
Jaromir you are right and it's because of issue #125741 A lot of languages register the same shortcuts for the same action
*** Bug 209029 has been marked as a duplicate of this bug. ***
This isn't specific to Macs, right ?
No.
Created attachment 153742 [details] Proposed changes Please review the attached patch. The API change is a simple addition of action IDs to EditorActionNames (editor.lib2 module). The other changes clean up layer or binding files in modules which I've found to define next/prev occurrences actions. After the change, all actions appear as one entry in the Tools | Options and are configured
VV1: Is it really necessary that each module still have to define display names in own Bundle.properties? Could you define display name in editor module as well?
(In reply to Vladimir Voskresensky from comment #11) > VV1: Is it really necessary that each module still have to define display > names in own Bundle.properties? Could you define display name in editor > module as well? Seems necessary as actions initialize superclass using their display name. Each of the affected modules defines its own implementation of the action, so the implementation is in charge of loading the localized string; resources are classloader-based.
Finally implemented in jet-main#357c9c9c36fe editor.lib2 spec bumped to 2.6
Integrated into 'main-silver', will be available in build *201602120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/357c9c9c36fe User: Svata Dedic <sdedic@netbeans.org> Log: #194356: unified next/prev err occurrence action names