imagej / imagej2

Open scientific N-dimensional image processing :microscope: :sparkler:
https://imagej.net/
BSD 2-Clause "Simplified" License
1.2k stars 337 forks source link

Getting to the Searchbar with L #206

Closed hyungsongnam closed 6 years ago

hyungsongnam commented 6 years ago

Hello, I would like to report a minor UI issue. With an image window open, typing L goes to the searchbar. This also works when the Window & Level tool is open and is in the foreground. However, when the Channels tool is open and in the foreground, typing L doesn't go to the searchbar.

Thank you!

ctrueden commented 6 years ago

@hyungsongnam Thanks for the report! And sorry for the delay in reply. Interesting observation. It seems that none of ImageJ's shortcuts work as expected from the Channels window. For example, pressing ENTER does not raise the main window, pressing Shift+B (or Ctrl+Shift+B) does not open Blobs, and so forth. So this problem is more general than just the search bar.

@rasband Any idea why the Channels window behaves differently than e.g. B&C? Maybe a key listener is not added to the Channels window?

rasband commented 6 years ago

The latest ImageJ daily build (1.52h37) adds key listeners to all the components of the "Channels" Dialog, which appears to fix this problem. View the source code changes at https://github.com/imagej/imagej1/commit/2c43bef4d5fc4521d5aecbe4f3b8f5282f4e761a.