nion-software / nionswift

Nion Swift is open source scientific image processing software integrating hardware control, data acquisition, visualization, processing, and analysis using Python. Nion Swift is easily extended using Python. It runs on Windows, Linux, and macOS.
http://nion.com/swift
GNU General Public License v3.0
45 stars 33 forks source link

Panel should not be selected when drawing FFT with shift-key in unselected panel #1175

Open cmeyer opened 1 month ago

cmeyer commented 1 month ago

The can be tested using the procedure ND demonstrated. Essentially start with two raster images in display panels. Select one. Choose the crop tool. In the other non-selected display panel, start drawing a crop region then hold down the shift key after dragging begins. The result is that both display panels are now selected and pressing Ctrl+F to do FFT does not do the FFT. Instead, in the case of drawing a square crop region using the shift key, the 2nd panel should be the only one selected at the end of the dragging. Clicking back to the first display panel should refocus it.

Note: The first part works for me on macOS; the second part (clicking back to select the first panel) doesn't. I didn't test on Windows.

cmeyer commented 15 hours ago

Fix for this is here: