Bug 252875

Summary: Add "delete" keyboard shortcut to the data manager
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.0.1   
Target Milestone: 2.0.1   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Attempted patch (not working)

Description Nicolas Brisset 2010-09-30 16:30:58 UTC
Version:           2.0.1
OS:                Linux

I just had the case that there was plenty of stuff in the data manager that I wanted to delete, and it is a pain. To edit, a double-click is enough, but to delete an item you need to do RMB->scroll down the list->Delete.
We should add a keyboard shortcut so that hitting the "Del" key directly deletes the selected object and selects the next one.

I tried to do it but it does not work :-( I made the delete action global to the DataManager class, called new QAction() it in the constructor and registered the Qt::Key_Delete shortcut for it. The context menu shows the shortcut, but hitting the key does nothing (neither with nor without context menu)

Reproducible: Always
Comment 1 Nicolas Brisset 2010-09-30 16:34:20 UTC
Created attachment 52117 [details]
Attempted patch (not working)
Comment 2 Nicolas Brisset 2010-10-07 10:27:18 UTC
SVN commit 1183366 by brisset:

Add the delete key as keybord shortcut to quickly delete objects from the data
manager.

BUG: 252875


 M  +11 -1     datamanager.cpp  
 M  +1 -1      datamanager.h  
 M  +3 -0      datamanager.ui  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1183366
Comment 3 Peter Kümmel 2010-11-12 10:37:16 UTC
There is no version list for "Version Fixed in".
Use Target Milestone as indicator when the bug was fixed.