diff options
-rw-r--r-- | src/actions.cpp | 7 | ||||
-rw-r--r-- | src/actions.h | 6 | ||||
-rw-r--r-- | src/bindings.cpp | 2 | ||||
-rw-r--r-- | src/help.cpp | 2 |
4 files changed, 10 insertions, 7 deletions
diff --git a/src/actions.cpp b/src/actions.cpp index 58631b66..1060ff7a 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -1727,16 +1727,17 @@ void ReverseSelection::Run() ShowMessage("Selection reversed"); } -bool DeselectItems::canBeRun() const +bool RemoveSelection::canBeRun() const { return proxySongList(myScreen).get(); } -void DeselectItems::Run() +void RemoveSelection::Run() { auto pl = proxySongList(myScreen); for (size_t i = 0; i < pl->size(); ++i) pl->setSelected(i, false); + ShowMessage("Selection removed"); } bool SelectAlbum::canBeRun() const @@ -2546,7 +2547,7 @@ void populateActions() insertAction(new JumpToTagEditor()); insertAction(new JumpToPositionInSong()); insertAction(new ReverseSelection()); - insertAction(new DeselectItems()); + insertAction(new RemoveSelection()); insertAction(new SelectAlbum()); insertAction(new AddSelectedItems()); insertAction(new CropMainPlaylist()); diff --git a/src/actions.h b/src/actions.h index b18c2c97..f0444792 100644 --- a/src/actions.h +++ b/src/actions.h @@ -39,7 +39,7 @@ enum ActionType aToggleSingle, aToggleConsume, aToggleCrossfade, aSetCrossfade, aEditSong, aEditLibraryTag, aEditLibraryAlbum, aEditDirectoryName, aEditPlaylistName, aEditLyrics, aJumpToBrowser, aJumpToMediaLibrary, aJumpToPlaylistEditor, aToggleScreenLock, aJumpToTagEditor, - aJumpToPositionInSong, aReverseSelection, aDeselectItems, aSelectAlbum, aAddSelectedItems, + aJumpToPositionInSong, aReverseSelection, aRemoveSelection, aSelectAlbum, aAddSelectedItems, aCropMainPlaylist, aCropPlaylist, aClearMainPlaylist, aClearPlaylist, aSortPlaylist, aReversePlaylist, aApplyFilter, aFind, aFindItemForward, aFindItemBackward, aNextFoundItem, aPreviousFoundItem, aToggleFindMode, aToggleReplayGainMode, aToggleSpaceMode, aToggleAddMode, @@ -679,9 +679,9 @@ protected: virtual void Run(); }; -struct DeselectItems : public Action +struct RemoveSelection : public Action { - DeselectItems() : Action(aDeselectItems, "deselect_items") { } + RemoveSelection() : Action(aRemoveSelection, "remove_selection") { } protected: virtual bool canBeRun() const; diff --git a/src/bindings.cpp b/src/bindings.cpp index 51795fb4..b44b4896 100644 --- a/src/bindings.cpp +++ b/src/bindings.cpp @@ -419,6 +419,8 @@ void BindingsConfiguration::generateDefault() bind(k, aShowLyrics); if (notBound(k = stringToKey("v"))) bind(k, aReverseSelection); + if (notBound(k = stringToKey("V"))) + bind(k, aRemoveSelection); if (notBound(k = stringToKey("B"))) bind(k, aSelectAlbum); if (notBound(k = stringToKey("a"))) diff --git a/src/help.cpp b/src/help.cpp index c1469c6e..57cc4dfb 100644 --- a/src/help.cpp +++ b/src/help.cpp @@ -237,7 +237,7 @@ void Help::GetKeybindings() KeyDesc(aToggleAddMode, "Toggle add mode (add or remove/always add)"); KeyDesc(aToggleMouse, "Toggle mouse support"); KeyDesc(aReverseSelection, "Reverse selection"); - KeyDesc(aDeselectItems, "Deselect items"); + KeyDesc(aRemoveSelection, "Remove selection"); KeyDesc(aSelectAlbum, "Select songs of album around the cursor"); KeyDesc(aAddSelectedItems, "Add selected items to playlist"); KeyDesc(aAddRandomItems, "Add random items to playlist"); |