Bug 494623 - Arrow keys navigation leaves the focus from album tree-view to icon-view.
Summary: Arrow keys navigation leaves the focus from album tree-view to icon-view.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Keyboard (show other bugs)
Version: 8.5.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-12 21:57 UTC by simpsonus
Modified: 2024-10-13 17:39 UTC (History)
2 users (show)

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


Attachments
AlbumTree (166.49 KB, image/jpeg)
2024-10-12 21:57 UTC, simpsonus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description simpsonus 2024-10-12 21:57:29 UTC
Created attachment 174751 [details]
AlbumTree

SUMMARY
when using arrows keys in album tree view, the navigation hangs at first and last album if coming from Album or Trash

STEPS TO REPRODUCE
1. click with mouse on the Albums text in the album tree view -> displays the welcome page
2. use the Down arrow key -> First item selected (in my case Nos Photos)
3. Down or Up arrow keys are not working any more until I use the mouse to click on another album/directory
4. Same thing if if click on the Trash at the bottom of the album tree and use the Up arrow key, it hangs at the last album (in my case "Sébastien et Sandra" see attachment)
5. I I first click on The first Album (Nos Photos) and then use the down arrow key I can navigate on the tree, until I go to the "Albums" or "Trash" item in the Tree

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: Sonoma 14.7

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2024-10-12 22:11:55 UTC
Intel or Silicon computer ?
Comment 2 simpsonus 2024-10-12 22:27:44 UTC
MacBook Air Silicon M2
Comment 3 caulier.gilles 2024-10-13 03:12:16 UTC
yes, it's reproducible on my macbook pro M1 or under Linux. In fact the focus left the album tree to switch to the icon view. Application do not hangs at all the arrow keys continue to works but on icon-view.
Comment 4 Maik Qualmann 2024-10-13 05:05:20 UTC
We intentionally set the focus to this when we change views. This also applies to table view or map view.

We have to decide whether we want this or not. Since we only get the focus when we change and not when we open another album, I think we can remove it.

https://invent.kde.org/graphics/digikam/-/blob/master/core/app/views/stack/stackedview.cpp?ref_type=heads#L442

Maik
Comment 5 Maik Qualmann 2024-10-13 17:39:23 UTC
Git commit 81caade593eef9dd6c9cb68667adf5247f3287dc by Maik Qualmann.
Committed on 13/10/2024 at 17:38.
Pushed by mqualmann into branch 'master'.

keep the focus in the album tree view when switching
FIXED-IN: 8.5.0

M  +1    -1    NEWS
M  +3    -3    core/app/views/stack/itemiconview_views.cpp
M  +14   -11   core/app/views/stack/stackedview.cpp
M  +2    -1    core/app/views/stack/stackedview.h

https://invent.kde.org/graphics/digikam/-/commit/81caade593eef9dd6c9cb68667adf5247f3287dc