Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 328504

Summary: [search] Show Next Match shortcut does not work in the Search window
Product: [Eclipse Project] Platform Reporter: Tor Norbye <tor.norbye>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, markus.kell.r, Olivier_Thomann
Version: 3.6.1   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Tor Norbye CLA 2010-10-22 15:08:33 EDT
Build Identifier: Eclipse for RCP and RAP Developers  Version: Helios Service Release 1 Build id: 20100917-0705

This is probably Mac specific.

If I perform a usages-search for some Java symbol, the Search window opens up. I click in it to give it focus. I can click on the Up and Down arrows to navigate through the matches. If I hover over the Down arrow, it shows that its associated action is "Show Next Match", bound to Command-. (dot).

However, pressing Command-. does NOT work; instead the IDE beeps. 

Note that this is NOT a matter of having changed my keybindings (because I started with a brand new workspace), and it is NOT a matter of the operating system stealing the shortcut (because Command-. DOES work in the editor window to jump from error to error!).

Interestingly, the opposite action DOES work: if I hold the Shift key down with Command-., then I navigate backwards through the errors.

Note also that I asked somebody else I ran into, a long time Eclipse user, to try the same thing on his computer, and he observed the same problem -- Cmd-. does not work in the Search window, despite the tooltip on the Down arrow button (and he's the one who discovered that Shift-Cmd-. to do Show Previous Match DOES work.)

Reproducible: Always

Steps to Reproduce:
1. Perform a usages search
2. Click in the Search window
3. Hover over the Down arrow toolbar button there to confirm that it says Cmd+. is the keybinding to navigate from match to match.
4. Hold Cmd and hit the period key -- it does NOT jump to the next error. 
5. If you press the Shift key first and repeat the keystroke, note that it does work (but of course goes backwards).
6. Open the editor and add an error and move the caret away from it. Now confirm that Cmd-. in the editor WILL jump to the error.
Comment 1 Olivier Thomann CLA 2010-10-22 15:16:22 EDT
Move to JDT/UI
Comment 2 Dani Megert CLA 2010-10-23 03:15:34 EDT
>If I perform a usages-search for some Java symbol, 
Just to be sure we're not talking about a third party plug-in: you are doing a "References" search, right? And the matches are opened in the normal Java editor?

>However, pressing Command-. does NOT work; instead the IDE beeps. 
Does anything else happen besides "Beep"?

Anything in .log?

Is there something special about your setup, e.g. the Search view being detached?
Comment 3 Dani Megert CLA 2010-10-23 03:23:08 EDT

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