bindings: additionally bind delete to DeleteBrowserItems by default

This commit is contained in:
Andrzej Rybczak
2014-11-07 23:08:13 +01:00
parent a32a4262b8
commit 2ef83ff15f
4 changed files with 9 additions and 1 deletions

4
NEWS
View File

@@ -1,3 +1,7 @@
ncmpcpp-0.6.2 (????-??-??)
* Delete key now aditionally binds by default to action that deletes files in browser.
ncmpcpp-0.6.1 (2014-11-06) ncmpcpp-0.6.1 (2014-11-06)
* Comment tag is now properly written to mp3 files. * Comment tag is now properly written to mp3 files.

View File

@@ -1,7 +1,7 @@
AC_INIT(configure.ac) AC_INIT(configure.ac)
AC_CONFIG_HEADERS(config.h) AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE(ncmpcpp, 0.6.1) AM_INIT_AUTOMAKE(ncmpcpp, 0.6.2_pre)
AC_PREREQ(2.59) AC_PREREQ(2.59)

View File

@@ -188,6 +188,9 @@
# delete_playlist_items # delete_playlist_items
# #
#def_key "delete" #def_key "delete"
# delete_browser_items
#
#def_key "delete"
# delete_stored_playlist # delete_stored_playlist
# #
#def_key "right" #def_key "right"

View File

@@ -366,6 +366,7 @@ void BindingsConfiguration::generateDefaults()
if (notBound(k = stringToKey("delete"))) if (notBound(k = stringToKey("delete")))
{ {
bind(k, Actions::Type::DeletePlaylistItems); bind(k, Actions::Type::DeletePlaylistItems);
bind(k, Actions::Type::DeleteBrowserItems);
bind(k, Actions::Type::DeleteStoredPlaylist); bind(k, Actions::Type::DeleteStoredPlaylist);
} }
if (notBound(k = stringToKey("right"))) if (notBound(k = stringToKey("right")))