GNOME Bugzilla – Bug 629208
When a clip is selected in the timeline but the Media Library is focused, delete key should do nothing
Last modified: 2012-01-14 23:05:41 UTC
When I select a clip in the media library and hit the delete key, I expect that clip to be removed from the media library. Instead, PiTiVi removes whichever clip was last selected *from the timeline*
This is by design, see comment 7 in bug #597243 for an explanation.
I see your reasoning—you don't want the user to delete all instances of a clip by accident. Fair enough. I would however prefer I pressing delete while having the focus on an item in the media library didn't do anything at all. If instead it deletes an object in a part of the UI which currently does NOT have the focus, then this is just plain counter-intuitive!
Ah, indeed, it would make sense to have the delete key not do anything if the media library is focused.
Note that for this to happen, you need to have a clip selected on the timeline, then click on the media library and hit Delete; if there is no selection in the timeline, nothing happens.
This might be: - the timeline selection thing being overzealous and not checking the results of the "setActionsSensitive" method in mainwindow.py - the Delete key not being among the actions handled by setActionsSensitive - incorrect widget focus?
This is fixed in my medialibrary-code-cleanup branch.