nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

Spectra panel should not open on ESC

Open lpatiny opened this issue 2 months ago • 3 comments

If we have a selected tool and the spectra panel is closed, pressing ESC would open the spectra panel.

Not sure why it exists but it does not seem practical.

Image

lpatiny avatar Oct 23 '25 13:10 lpatiny

@lpatiny

When you press Escape, the selected tool resets to Zoom, which automatically opens the Spectra panel.

Image

hamed-musallam avatar Oct 23 '25 13:10 hamed-musallam

Ok I see. I probably asked explicitly for this behaviour ...

One issue is that it is easy to open many panels and the interface becomes quickly unusable.

Image

I see 2 quick ways that could help to improve the user experience.

  1. Keep only one panel open at a time

Problem: we could like to see a specific information bout spectra while quickly going through all the spectra. But this is probably not such a usual case

  1. We could try to remember how the panel was open

If a panel was open using a tool, if this tool is unselected, the panel closes.

lpatiny avatar Oct 23 '25 14:10 lpatiny

@lpatiny

Complex apps often face the same issue we are experiencing now: too many panels cluttering the interface. The simplest and most effective solution is to show only the essential panels (perhaps just the Spectra and Information panels) when the app first opens. Additional panels can remain hidden and be added by the user as needed from the quick panels bar on the right side.

We should keep the default view clean and let the user customize the mess.

In the future, we should allow vertical resizing of panels, since some panels contain more important information and may need to be fully visible.

hamed-musallam avatar Oct 24 '25 06:10 hamed-musallam