Bug 459571 - Ctrl+/ is a duplicate default shortcut for two distinct actions
Summary: Ctrl+/ is a duplicate default shortcut for two distinct actions
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: All editors (other bugs)
Version First Reported In: 5.7.211202
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-23 16:52 UTC by Javier O. Cordero Pérez (Cuperino)
Modified: 2022-09-23 16:52 UTC (History)
0 users

See Also:
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. (76.15 KB, image/png)
2022-09-23 16:52 UTC, Javier O. Cordero Pérez (Cuperino)
Details

Note You need to log in before you can comment on or make changes to this bug.
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.