nmatt opened a new issue, #8466:
URL: https://github.com/apache/netbeans/issues/8466
### Apache NetBeans version
Apache NetBeans 26 latest release candidate
### What happened
The change implemented in NetBeans 24 by #7694 broke how I use Find Usages.
Specifically, the Ctrl+. and Ctrl+, keyboard shortcuts don't work in the editor
window anymore. Instead, they only change the display in the new preview pane.
A frequent use case of Find Usages for me is to navigate through all usages
of something in order to adjust (edit) the related code. Previously, this was
straightforward by invoking Find Usages and then navigating back and forth with
Ctrl+. and Ctrl+, within the editor. This has become very inconvenient now.
From the editor window, one has to press Ctrl+Shift+U to move focus back to the
Usages results, then press Return to have the editor jump to the corresponding
location in the source. This sequence has to be performed for each single jump.
It's not possible anymore to quickly navigate back and forth between the
occurences by keyboard while staying in the editor.
An additional circumstance for me is that I usually have the Usages window
minimized ("Minimize Window Group"), in order to have more screen real estate
for the editor window. With the old UI, one could navigate through the found
usages in the code editor without having to open the Usages results window in
between. This is not possible anymore now.
Expected behavior: Ctrl+. and Ctrl+, should switch through the Usages
results in the source editor (at least when the keyboard focus is in the source
editor).
### Language / Project Type / NetBeans Component
Editor
### How to reproduce
Steps to reproduce:
1. Open a Java project in NetBeans.
2. Open a suitable Java source file.
3. Invoke Find Usages (Alt+F7) on a suitable element that will have multiple
results.
4. Once the Usages results are ready, press the Ctrl+. and Ctrl+, keyboard
shortcuts. Observe how this navigates through the Usages results, but the
source code editor remains unchanged. Repeat the same while keyboard focus is
in the code editor (same result). Compare to how in NetBeans 23 and earlier,
the code editor would navigate through the found usages.
5. Minimize the Usages window (windows group). Observe how Ctrl+. and Ctrl+,
now seemingly fo nothing. (They still change the state in the minimizes Usages
window.)
For comparison, observe how Find in Projects works:
1. Invoke Find in Projects (Ctrl+Shift+F)
2. Search for something that will have multiple results.
3. With keyboard focus in the editor, press the Ctrl+. and Ctrl+, keyboard
shortcuts. Observe how this navigates through the search results both in the
editor and in the Search Results pane.
### Did this work correctly in an earlier version?
Apache NetBeans 23
### Operating System
Windows 10
### JDK
JDK 21
### Apache NetBeans packaging
Apache NetBeans provided installer
### Anything else
Suggested fix: It's probably the easiest and most consistent to adjust the
Usages results behavior to become the same as the current Search Results
behavior.
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists