Bug 503526

Summary: Keyboard shortcuts were missing upon launching Kdenlive 25.04.0 on Windows 11 Version 24H2 (x86_64). Importing a custom scheme resulted in incorrect naming.
Product: [Applications] kdenlive Reporter: Jeffrey Krebs <rockinjeff>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Keyboard set default with Media Composer settings

Description Jeffrey Krebs 2025-04-29 14:34:59 UTC
**Steps to Reproduce:**  
1. Launch Kdenlive 25.04.0 on Windows 11 Version 24H2 (x86_64).  
2. Observe that previously configured keyboard shortcuts are missing upon first launch.
3. Navigate to **Configure Keyboard Shortcuts > Import Scheme**.  
4. Select and import the custom shortcut scheme file: `Avid-Media-Composer-Kdenlive-Hybrid-Keyboard.shortcuts`.  
5. Observe that shortcuts do not populate.  
6. Attempt to download a scheme from within Kdenlive (this action fails).  
7. Delete all existing shortcut schemes within Kdenlive.  
8. Re-import the `Avid-Media-Composer-Kdenlive-Hybrid-Keyboard.shortcuts` file.  
9. Observe that the scheme imports successfully, but is misnamed.  

**Expected Result:**  
The imported keyboard shortcut scheme should retain its intended name and correctly apply all shortcuts.

**Actual Result:**  
- The imported scheme lacks its proper name.  
- The only available scheme names are **Default** and **Premiere**, with the imported scheme incorrectly labeled as **Default**.  

**Additional Notes:**  
- The issue suggests that Kdenlive does not properly retain user-defined shortcut scheme names upon import.  
- Failed download attempts may indicate a related configuration or server-side issue.  
- Further investigation required to determine whether this is a naming convention bug or a deeper issue with scheme management.
Comment 1 Jeffrey Krebs 2025-04-29 14:36:50 UTC
Created attachment 180777 [details]
Keyboard set default with Media Composer settings
Comment 2 Jean-Baptiste Mardelle 2025-07-22 15:52:27 UTC
Ok so it took me some time but I found a few issues with keyboard schemes.
First issue that is confusing, the "Import Scheme" feature seems to import over the existing active scheme (this is a KF usability issue)
Then there was a problem with location for downloaded schemes on Windows that should be fixed.
And finally, last problem is that there are 2 different formats for keyboard schemes. The "real" scheme files are xml. But when you export a scheme, it is a plain text file with a list of action=shortcut.
So if the downloaded scheme was just placed in the shortcuts folder, it was not readable by the shortcut editor, resulting in all shortcuts being empty. I now have a merge request to convert downloaded files to xml so they should work directly after install.
Comment 3 Bug Janitor Service 2025-07-22 15:55:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/kdenlive/-/merge_requests/680
Comment 4 Jean-Baptiste Mardelle 2025-07-23 05:29:03 UTC
Git commit df9291bd0eaf3729ea435f755f6af33232b018fa by Jean-Baptiste Mardelle.
Committed on 23/07/2025 at 05:28.
Pushed by mardelle into branch 'master'.

Convert Keyboard schemes from .rc to xml after download since this is what is expected

M  +36   -1    src/mainwindow.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/df9291bd0eaf3729ea435f755f6af33232b018fa
Comment 5 Jean-Baptiste Mardelle 2025-07-24 05:57:34 UTC
Git commit 81a7d851aba11e2dd32e3e349df7a0e954f01cb3 by Jean-Baptiste Mardelle.
Committed on 24/07/2025 at 05:55.
Pushed by mardelle into branch 'release/25.08'.

Convert Keyboard schemes from .rc to xml after download since this is what is expected

M  +36   -1    src/mainwindow.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/81a7d851aba11e2dd32e3e349df7a0e954f01cb3