Bug 376918

Summary: Ambiguous Shortcuts
Product: [Applications] digikam Reporter: Ric <fhj52.info>
Component: Usability-KeyboardAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: arnolddeman, caulier.gilles, derry, johu, kdedev, metzpinguin, roger.k.wells, will.saunders
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ric 2017-02-25 15:04:53 UTC
Started charge for phone, got a popup in KDE plasma 5.9.2 for 'what to do' and decided to see if Digikam works.
It does! (I'm so glad - luv digikam!)
However it popped-up a message:
"
Ambiguous Shortcuts
There are two actions (Select Locked Items, Toggle Lock) that want to use the same shortcut (Ctrl+L). This is most probably a bug. Please report it in bugs.kde.org
"

The configurable Settings/Shortcuts has neither of those items. 
It does have General/"Place onto Light Table" as Ctrl+L.

So not sure what the real problem is here. 
Nevertheless, I looked for this error in bugs list and did not find it so it is reported as requested.

[system info]
System:    Kernel: 4.9.12-1-MANJARO x86_64 (64 bit gcc: 6.3.1)
           Desktop: KDE Plasma 5.9.2 (Qt 5.8.0) Distro: Manjaro Linux
Machine:   Mobo: Supermicro model: X8DTH BIOS: AMI v: 2.1b date: 05/04/12
CPU(s):    2 Quad core Intel Xeon X5687s (-HT-MCP-SMP-) cache: 24576 KB
Graphics:  Card: NVIDIA GP106 [GeForce GTX 1060 6GB] bus-ID: 84:00.0

[digikam info]
Name            : digikam
Version         : 5.4.0-2
Depends On      : liblqr  libkipi  lensfun  opencv  akonadi-contacts  knotifyconfig  libksane  kfilemetadata
                  qtav  marble  threadweaver  kcalcore
Optional Deps   : kipi-plugins: export to various online services [installed]
                  qt5-imageformats: support for additional image formats (WEBP, TIFF) [installed]
Packager        : Antonio Rojas <arojas[AT]archlinux.org>
Build Date      : Sun 29 Jan 2017 03:50:14 PM CST
Comment 1 Maik Qualmann 2017-03-21 20:09:43 UTC
Check the shortcuts from the import tool. Standard is for "Select Locked Items" (Ctrl+L) and for "Toggle Lock" (Ctrl+G).

Maik
Comment 2 Maik Qualmann 2017-03-21 20:14:27 UTC
*** Bug 377809 has been marked as a duplicate of this bug. ***
Comment 3 Maik Qualmann 2017-04-29 17:04:35 UTC
*** Bug 379352 has been marked as a duplicate of this bug. ***
Comment 4 Maik Qualmann 2019-03-17 15:33:37 UTC
*** Bug 381165 has been marked as a duplicate of this bug. ***
Comment 5 Andrew 2020-06-04 23:37:31 UTC
I downloaded KJots, and started it when it finished. Before the main app came up, the "Ambiguous Shortcuts" dialog popped up. It said I should report it here, so hopefully, this is right.
I put the product as kjots, since I don't have digikam at all.. Makes me think it's not app specific. Also these version numbers lately are strange, and mine isn't in the list. My KJots says 4:5.0.2-1ubuntu1.
I get the feeling I'm doing this wrong, sorry.
Comment 6 Christoph Feck 2020-07-03 22:21:43 UTC
Please don't hijack bugs. For kjots, we already had a ticket: bug 384000.
Comment 7 TraceyC 2022-08-03 15:14:59 UTC
I got the same warning when I tried to launch Kate. This is definitely not limited to any particular application. 

"There are two actions (Previous Tab, Split Horizontal) that want to use the same shortcut (Ctrl+Shift+T). This is most probably a bug. Please report it in bugs.kde.org"
Side note, the dialog doesn't say which applications or system services have the shortcut bound. It would help the user to provide that information, since searching for the shortcut in the global shortcuts won't necessarily reveal both uses if the other instance is in another app.

Here's what I had done to trigger the bug:
* I was editing in Kate, and noticed that Ctrl+] does not indent a section of text as in VS Code. I changed the shortcut for indent from Ctrl+I to Ctrl+] and also changed the shortcut for unindent. 
* I set the alternate shortcut to Ctrl+Shift+t (unindent to Ctrl+Shift+alt+t)
* This led to a conflict with another global setting (which I think is the core problem here), which caused warnings to pop up. (Common Actions - Activate Previous tab)
* I set those two shortcuts in Kate back to default, then set the alternate shortcuts for indent and unident. I closed Kate.
* Today  when I opened Kate, the dialog quoted above appeared.

"Previous Tab" is in Settings - Shortcuts - Common Actions - Navigation. It's shown as a custom shortcut.
"Split Horizontal" is in Kate. Ctrl+Shift+T is the main shortcut.

The cause seems to be that shortcuts set in a specific application will conflict with shortcuts set for something else. Allowing applications to have application specific shortcuts would likely resolve the problem. A brief search through bugs revealed many reports of this or similar errors.

The bug prevents me from setting my desired custom shortcut in Kate because of the conflicts in other unrelated system settings.

Related: #340928

[system info]
KDE Plasma Version 5.25.3
KDE Frameworks Version: 6.96.0
Kernel Version: 5.15.50-216
Distribution: Solus Plasma Edition
Comment 8 caulier.gilles 2023-04-21 14:54:00 UTC
Hi all,

digiKam 8.0.0 is released. This file still valid ?

Gilles Caulier
Comment 9 caulier.gilles 2023-10-12 05:54:48 UTC
Ric,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

https://files.kde.org/digikam/

Note: bundle is now based on Qt 5.15.11 and KDE framework 5.110.

Thanks in advance

Gilles Caulier