Bug 459571

Summary: Ctrl+/ is a duplicate default shortcut for two distinct actions
Product: [Applications] kdevelop Reporter: Javier O. Cordero Pérez (Cuperino) <javiercorderoperez>
Component: All editorsAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.7.211202   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of the Configure Keyboard Shortcuts window showing how Ctrl+/ is the default shortcut for two distinct actions.

Description Javier O. Cordero Pérez (Cuperino) 2022-09-23 16:52:54 UTC
Created attachment 152370 [details]
Screenshot of the Configure Keyboard Shortcuts window showing how Ctrl+/ is the default shortcut for two distinct actions.

SUMMARY
Ctrl+/ is the default shortcut for two distinct actions in KDevelop, which results in users not being able to perform either action from shortcuts. These actions are "Toggle Comment" and "Switch Header/Source".

STEPS TO REPRODUCE
1. Do a clean install of KDevelop
2. Open any project or document
3. Click on the code editor to focus it
4. Press Ctrl+/ shortcut

OBSERVED RESULT
A message box appears indicating "Ctrl+/" is an ambiguous shortcut and requesting the user to go to "Settings > Configure Keyboard Shortcuts..." to resolve the issue.

EXPECTED RESULT
"Toggle Comment" should have Ctrl+/ as its default shortcut because this is the most widely adopted convention, used by C++ and Qt developers by default in software such as VSCode and Qt Creator. A different shortcut or no default shortcut should set for "Switch Header/Source".

SOFTWARE/OS VERSIONS
Linux: Fedora Linux 36, Linux kernel 5.19.10-xm1.0.fc36.x86_64
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Customizing either action to a different shortcut results in user being unable to replicate the issue because the program prevents duplicate shortcuts from being assigned. The attached screenshot shows Ctrl+/ is the default shortcut for two distinct actions but one of those actions has already been customized to something other than the default.