Bug 476374 - Cursor focus jumps when in Preview and entering a tag
Summary: Cursor focus jumps when in Preview and entering a tag
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Keyboard (other bugs)
Version First Reported In: 8.1.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-31 14:36 UTC by john-d-smith
Modified: 2023-11-02 21:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description john-d-smith 2023-10-31 14:36:14 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. From thumbnail view, highlight a photo and press F3 to enter Preview
2. Press "T" to start entering a tag
3. begin typing (full words)

OBSERVED RESULT
After one, two, or three characters (and at random), the focus will jump back to the main window. Typing in the tag pane stops, and digikam now responds as if I was issuing keyboard shortcuts (i.e. hitting backspace will move to the previous photo) 

EXPECTED RESULT
The cursor remains focused in the tag pane until I am finished adding tags and either hit Esc or F3, or click into another pane.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu 22.04
(available in About System)
Gnome Version: 42.9

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2023-10-31 14:46:56 UTC
It's reproducible using digiKam 8.2.0 pre-release App-image bundle available here ?

https://files.kde.org/digikam/
Comment 2 Maik Qualmann 2023-10-31 20:31:51 UTC
Git commit 5a062d804333a20ff881ea8c73587f0ac3a7a168 by Maik Qualmann.
Committed on 31/10/2023 at 21:30.
Pushed by mqualmann into branch 'master'.

set the focus  to preview if there are visible faces
FIXED-IN: 8.2.0

M  +1    -1    NEWS
M  +7    -7    core/utilities/facemanagement/items/facegroup.cpp

https://invent.kde.org/graphics/digikam/-/commit/5a062d804333a20ff881ea8c73587f0ac3a7a168
Comment 3 Maik Qualmann 2023-10-31 20:35:51 UTC
The problem only occurred with images containing face regions. Due to Bug 408982 we had set the focus on the view. This now only happens when the facial region display is activated.

Maik
Comment 4 john-d-smith 2023-11-02 21:59:54 UTC
(In reply to Maik Qualmann from comment #3)
> This now only happens when the facial region display is activated.

What does this mean, specifically? By 'activated' do you mean 
- when a user has specifically clicked into the facial region tagging box?
- when 'show face tags' is turned on? 
- when _any_ faces are tagged?

I understand what was happening in the other bug got addressed with a focus switch, but the focus should never change up on a user *in the middle of them typing elsewhere.* Do I understand correctly that in 8.2.0 that will no longer happen, or that it will happen with facial regions? (tagged or untagged)