Pressing space on an invalid file opens the preview window without showing any effect
Behavior
Pressing space on a file type that fails to preview (i.e. CSV or zip) will not show any effect; i.e. no preview window showing "bad file type". However, the preview window is still "open," so that if the user navigates to a valid file using the arrow keys, or drags the invalid file into another folder, causing Nautilus to select the next (valid) file, then the preview window will open without pressing space.
I can see how it makes sense for the preview state to remain active when selecting files that cannot be previewed. Intuitive use case is scrolling through a folder of files using the arrow keys; you don't want the preview to close and remain closed just because you pass by a file that can't be previewed. But I think the above case (pressing space on a bad file, not seeing anything change, and then having a preview pop up when another file is selected) should be avoided.
Expected
I suggest either:
- The preview does not become active if the user presses space when selecting a file that cannot be previewed, but it still stays active if already active when such a file is selected.
- Pressing space on an invalid file still activates the preview, but shows a window that says "this file cannot be previewed," or just has info like the file name, size, date, etc. I know I've seen this before, I think with images or videos that are too large or don't have the right codec, but can't confirm at the moment.
I'd prefer the first solution, but wanted to offer both.
Distribution
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os