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

"Image->Transform->Rotate..." unmappable #188

Closed dodewall closed 6 years ago

dodewall commented 6 years ago

The "Image->Transform->Rotate..." command cannot be mapped i.e. it cannot be linked to keyboard shortcuts through ImageJ or the base operating system. I'm running the most current version of ImageJ on Mac OS Sierra.

Although the "Edit->Selection->Rotate..." command can be mapped (both through ImageJ's "Plugins->Shortcuts->Add Shortcut by Name...." and through the Mac OS Keyboard preferences), its identically-named counterpart in the "Image" menu cannot.

I've successfully mapped commands within the "Image->Transform" menu using both methods; it seems that the two sharing an identical name may have something to do with it.

If anyone has any suggestions for addressing this issue, it'd be much appreciated. Thanks!

imagejan commented 6 years ago

@dodewall wrote:

Although the "Edit->Selection->Rotate..." command can be mapped (both through ImageJ's "Plugins->Shortcuts->Add Shortcut by Name...." and through the Mac OS Keyboard preferences), its identically-named counterpart in the "Image" menu cannot.

The two commands are not identical, you can find out using the Macro recorder.

By entering "Rotate... " with the space, I was able to successfully map the command.

The presence of apparently identical menu commands is one of the ImageJ 1.x specifics that has lead to a lot of confusion in the past. In fact, ImageJ doesn't allow duplicate names for menu entries and will warn at startup if some exist.

dodewall commented 6 years ago

Great - thanks!