Toggle channels using keyboard?

I’m just learning QuPath and am working through the tutorials. I have the latest version 0.2.3 and when I load the sample multiplex fluorescence image, I can’t toggle the channels off/on using the numbers on the keyboard. Clicking the checkmark in the Brightness & contrast dialog works.

I’m on Windows 10, with current updates.

What am I missing?

Maybe include your Image tab information and/or what the brightness and contrast window shows? I have not seen any problems so far in Win10 and 0.2.3.

Thanks for the quick reply!

Here’s the image tab:

Here’s the brightness/contrast window:

That does look perfectly normal. The only other thing I can think of is that the Viewer needs to be the focus, not any dialog boxes…
*otherwise it would be hard to do things like type in values :slight_smile:

And that’s the answer! The main viewer needs to be the focus for the shortcut keys to work.

I assumed the keys were active everywhere, similar to the mouse wheel - in other words, they would be “global hotkeys”. For example, if you have the Brightness & contrast dialog in focus, the scroll wheel on the mouse still zooms the image on the viewer in and out.

For the keys, an alternate approach would be if the Brightness & contrast window or the Channel viewer was in focus, the keys would continue to toggle what was shown in the viewer.

The docs mention this in the section on shortcuts:

These shortcuts only work whenever the viewer is ‘in focus’, i.e. it is the last thing that was clicked. If a shortcut doesn’t seem to work, click on the viewer once to bring it into focus, then try the shortcut again.

1 Like