Bug 491870

Summary: Slideshow: open settings with F2 and switch overlay with F4 is no longer possible.
Product: [Applications] digikam Reporter: lebostein
Component: Plugin-Generic-SlideShowAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 8.4.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.5.0
Sentry Crash Report:

Description lebostein 2024-08-18 17:41:32 UTC
Hello,

for me it is impossible to reach the slideshow settings. You can normally access the settings via a button that is visible during the slideshow (press F9 to start a slideshow). This can be hidden in the settings. It is then impossible to open the settings again. If you press F1 during a slideshow, you will get help. This tells you that you should press F2 to open the slideshow settings. However, pressing F2 opens a dialog to rename the image.

Is there a workaround to open the slideshow settings?

STEPS TO REPRODUCE
1. Start a slideshow with F9
2. Press F2 for slideshow settings

OBSERVED RESULT
dialog to rename the image

EXPECTED RESULT
dialog for slideshow settings

SOFTWARE/OS VERSIONS
macOS 14.6.1
Comment 1 Maik Qualmann 2024-08-18 17:46:11 UTC
F2 works normally here under Linux and Windows and opens the slideshow settings.
In the bottom toolbar in the slideshow, the last tool button should also open the settings.

Maik
Comment 2 lebostein 2024-08-19 05:45:42 UTC
(In reply to Maik Qualmann from comment #1)
> F2 works normally here under Linux and Windows and opens the slideshow
> settings.
> In the bottom toolbar in the slideshow, the last tool button should also
> open the settings.
> 
> Maik
On mac OS there is no bottom toolbar in the slideshow (maybe this is exactly what I have deactivated in the settings?). All shortcuts (with the exception of F1) seems not working on mac OS - respectively the shortcuts of digikam are executed and not those of the slideshow.
Comment 3 caulier.gilles 2024-08-19 06:12:58 UTC
Under my Macbook Pro M1 the Slideshow Toolbar work as expected :

https://i.imgur.com/ipM0iCa.jpg

And the button on the right side of the tool bar allow to show Slideshow settings dialog.

But i agree that the F2 key under MacOS show the advanced rename dialog while slideshow running.

Gilles Caulier
Comment 4 Maik Qualmann 2024-08-19 06:20:23 UTC
I suspect the cause is the "native" menu bar in macOS, which is also active when another window is opened in full screen.

1. We could not use the native menu bar, but I don't think any macOS user wants that.

2. We could try to disable the menu bar while the slideshow is open.

3. We could use other keyboard shortcuts that are not used in the slideshow.

Maik
Comment 5 lebostein 2024-08-19 06:29:05 UTC
(In reply to caulier.gilles from comment #3)
> Under my Macbook Pro M1 the Slideshow Toolbar work as expected :
> 
> https://i.imgur.com/ipM0iCa.jpg
> 
> And the button on the right side of the tool bar allow to show Slideshow
> settings dialog.
> 
> But i agree that the F2 key under MacOS show the advanced rename dialog
> while slideshow running.
> 
> Gilles Caulier
Yes. Can you please open the settings with that button and the uncheck the option "show progress indicator"? Then the tool bar is no longer visible and you ano longer have a chance to reach the settings....
Comment 6 lebostein 2024-08-19 06:36:07 UTC
Simplest solution: add a new menu entry "Slideshow settings..." in the submenu "Slideshow". So you can reach the settings in any case
Comment 7 caulier.gilles 2024-08-19 06:42:59 UTC
Hi Maik,

In my Apple computer, the system bar on the top is only active when i move mouse on the top, else it's hidden. Not that when slideshow run, the widget is well switched to full-screen.

Gilles
Comment 8 caulier.gilles 2024-08-19 06:44:20 UTC
Right about 3/ : another keyboard shortcut must be used for the plugin settings dialog...

Gilles
Comment 9 caulier.gilles 2024-08-19 15:30:41 UTC
Maik,

If the F2 do not work in SlideShow from MacOS and works as expected under Linux, i suspect a wrong focus set to the tool. The icon-view remain the lead focus which catch the shorcut event.

Gilles
Comment 10 Maik Qualmann 2024-08-19 16:59:51 UTC
Gilles,

If you click on the slideshow toolbar with the mouse, does F2 work?

Maik
Comment 11 caulier.gilles 2024-08-19 18:48:51 UTC
Hi Maik,

Not at all, set the focus on the slide canvas or the tool bar do not change anything. Advanced Rename still open with F2.

Gilles
Comment 12 caulier.gilles 2024-08-19 18:50:20 UTC
Starting Slideshow from the play button overlay in icon view, or from the View sub menu, do not change anything.

Gilles
Comment 13 caulier.gilles 2024-08-20 00:51:40 UTC
The F1 key works as expected, the help dialog appear, but not F2. There is nothing special to read in the console while slideshow is running.

Gilles
Comment 14 Maik Qualmann 2024-08-20 05:42:11 UTC
The F1 key is not used in the main menu. As I said, I suspect that the native main menu is always active under macOS and catches all input keys first when the application is active.

What happens when F4 is pressed in the slideshow?

Maik
Comment 15 caulier.gilles 2024-08-20 06:05:24 UTC
While Slideshow, F4 open the image editor in a separated view (full-screen).

Gilles
Comment 16 Maik Qualmann 2024-09-08 07:26:17 UTC
Git commit fbb59efcacf397455b0f9af96eb74a4e42983809 by Maik Qualmann.
Committed on 08/09/2024 at 07:25.
Pushed by mqualmann into branch 'master'.

try to fix key shortcuts in the slideshow tool

M  +6    -0    core/app/main/digikamapp_setup.cpp

https://invent.kde.org/graphics/digikam/-/commit/fbb59efcacf397455b0f9af96eb74a4e42983809
Comment 17 Maik Qualmann 2024-09-14 21:14:01 UTC
@Gilles, is this problem still reproducible?

Maik
Comment 18 caulier.gilles 2024-09-14 21:21:41 UTC
Yes, it still the same for Intel or Arm versions. F2 launch the advanced rename tool.

Gilles
Comment 19 Maik Qualmann 2024-09-15 07:10:38 UTC
Git commit b75b9e1f907c320523a1e30541b1c8d48938407a by Maik Qualmann.
Committed on 15/09/2024 at 07:09.
Pushed by mqualmann into branch 'master'.

try with Qt::WindowShortcut

M  +5    -5    core/app/main/digikamapp_setup.cpp

https://invent.kde.org/graphics/digikam/-/commit/b75b9e1f907c320523a1e30541b1c8d48938407a
Comment 20 caulier.gilles 2024-09-15 07:52:33 UTC
Maik, same problems with last patch under macOS arm64.
Comment 21 Maik Qualmann 2024-09-15 08:14:45 UTC
Git commit ddb0bdf055d542e0f2eae8d49dc5c6dc370705e4 by Maik Qualmann.
Committed on 15/09/2024 at 08:14.
Pushed by mqualmann into branch 'master'.

last try with Qt::WidgetShortcut

M  +5    -5    core/app/main/digikamapp_setup.cpp

https://invent.kde.org/graphics/digikam/-/commit/ddb0bdf055d542e0f2eae8d49dc5c6dc370705e4
Comment 22 caulier.gilles 2024-09-15 09:00:47 UTC
Maik, same result with your last commit. It's time to assign specific shortcuts in Slideshow ?
Comment 23 Maik Qualmann 2024-09-15 09:54:32 UTC
Yes, specific keyboard shortcuts for the slideshow is the best solution at the moment.

Maik
Comment 24 caulier.gilles 2024-09-17 08:49:17 UTC
Git commit 898044fab80f1e5d3737fb955fa72ee3b81d9106 by Gilles Caulier.
Committed on 17/09/2024 at 08:47.
Pushed by cgilles into branch 'master'.

Change F2 to Alt+P and F4 to Alt+Y as keys sequence to handle configuration dialog and overlay visibility in SlideShow tool

M  +10   -7    core/dplugins/generic/view/slideshow/common/slideshowloader.cpp
M  +2    -2    core/dplugins/generic/view/slideshow/slideshowplugin.cpp
M  +50   -62   core/dplugins/generic/view/slideshow/widgets/slidetoolbar.cpp

https://invent.kde.org/graphics/digikam/-/commit/898044fab80f1e5d3737fb955fa72ee3b81d9106
Comment 25 caulier.gilles 2024-09-17 08:52:23 UTC
Git commit 5fdf00e20991982b129b42504f4cb9b44eba4902 by Gilles Caulier.
Committed on 17/09/2024 at 08:51.
Pushed by cgilles into branch 'master'.

fix manual about Slideshow keyboard shortcuts
FIXED-IN: 8.5.0

M  +2    -2    slideshow_tools/slide_tool.rst

https://invent.kde.org/documentation/digikam-doc/-/commit/5fdf00e20991982b129b42504f4cb9b44eba4902