Bug 482250 - Pressing [command] + i while editing image captions in preview mode replaces all other captions in album
Summary: Pressing [command] + i while editing image captions in preview mode replaces ...
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Keyboard (show other bugs)
Version: 8.3.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-02 20:55 UTC by Tom
Modified: 2024-03-03 04:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom 2024-03-02 20:55:08 UTC
SUMMARY
Pressing [command] + i while editing image captions in preview mode replaces all other captions in album

STEPS TO REPRODUCE
1. Create an album
2. Populate it with images
3. Enter unique comments for some of the images
4. Enter preview mode for an image
5. Click on the "Captions" tab on the right, the "Description" sub-tab at the top of the right hand pane, and activate the "Captions" field.
6. Enter some caption text
7. Press [command] + i 

OBSERVED RESULT
The captions on all images in the album will be replaced with the caption that was being edited.
This can not be undone... I could find no way to recover all prior captions that were lost.

EXPECTED RESULT
None, really. By default in digikam, [command] + i is set to "Invert." So hitting it inverts the selection, which means it switches it from the image being edited, to all other imaged. But apparently because that text field is live, when the image selection is inverted to all images other than the one being edited, the current contents of the text field overwrite the prior contents or all captions for the entire album.

I just have hitting [command] + I trained as muscle memory for italics when editing text. I understand that the caption field is plain text and not rich text, so italics do not work. But I didn't expect a stray keystroke to cause me to permanently lose dozens of hours of entering captions on hundreds of images, and suspect other users also do not have that expectation.

SOFTWARE/OS VERSIONS
macOS: 14.2.1 (23C71)
Comment 1 Maik Qualmann 2024-03-02 21:03:11 UTC
Well, this is basically normal behavior, this inverts the selected items. However, if they have not disabled the message, they will be informed whether the change should be applied. Otherwise we would have to deactivate the global key short cuts when editing, but that would have consequences for the workflow for other users.

Maik
Comment 2 Maik Qualmann 2024-03-02 21:10:28 UTC
So check whether you have activated the option to apply the changes without asking in the right sidebar in the digiKam settings under Miscellaneous-> Behavior. This option exists for exactly this reason.

Maik
Comment 3 Tom 2024-03-03 04:29:50 UTC
OK, I guess leave it be. I tried turning that checkbox on, but then it asks me to confirm every change, which is highly annoying. When I edit the text, I definitely want the edits.

I can't think of any other programs I use where a single common keystroke instantly eliminates massive amounts of data across the entire contents of a database,  with no method to undo. I also can't think of any workflow where this is desirable - under what circumstances does someone want to overwrite all the captions in the database with one key command hit while in a text editing field?

But I sort of expected the answer would be that it's working as intended.

For me, I just turned off the key command for command + i, so it shouldn't happen to me again.