FS#11711: Add ability to create bookmark from WPS hotkey

Original patch Michael Gentry
Updated by Igor Poretsky

Change-Id: Id0fd67d2b2f6c257e3cbbe9bfda5c0eace5caca5
This commit is contained in:
Solomon Peachy 2019-01-01 19:37:13 -05:00
parent 1b2fd8918f
commit 5e8db1662b
3 changed files with 8 additions and 4 deletions

View file

@ -1496,6 +1496,9 @@ static struct hotkey_assignment hotkey_items[] = {
HOTKEY_FUNC(NULL, NULL),
ONPLAY_PICTUREFLOW },
#endif
{ HOTKEY_BOOKMARK, LANG_BOOKMARK_MENU_CREATE,
HOTKEY_FUNC(bookmark_create_menu, NULL),
ONPLAY_OK },
};
/* Return the language ID for this action */

View file

@ -45,6 +45,7 @@ enum hotkey_action {
HOTKEY_INSERT,
HOTKEY_INSERT_SHUFFLED,
HOTKEY_PICTUREFLOW,
HOTKEY_BOOKMARK,
};
#endif

View file

@ -2213,19 +2213,19 @@ const struct settings_list settings[] = {
#ifdef HAVE_HOTKEY
TABLE_SETTING(F_ALLOW_ARBITRARY_VALS, hotkey_wps,
LANG_HOTKEY_WPS, HOTKEY_VIEW_PLAYLIST, "hotkey wps",
"off,view playlist,show track info,pitchscreen,open with,delete"
"off,view playlist,show track info,pitchscreen,open with,delete,bookmark"
#ifdef HAVE_PICTUREFLOW_INTEGRATION
",pictureflow"
#endif
,UNIT_INT, hotkey_formatter, hotkey_getlang, NULL,
#ifdef HAVE_PICTUREFLOW_INTEGRATION
7,
8,
#else
6,
7,
#endif
HOTKEY_OFF,
HOTKEY_VIEW_PLAYLIST, HOTKEY_SHOW_TRACK_INFO, HOTKEY_PITCHSCREEN,
HOTKEY_OPEN_WITH, HOTKEY_DELETE
HOTKEY_OPEN_WITH, HOTKEY_DELETE, HOTKEY_BOOKMARK
#ifdef HAVE_PICTUREFLOW_INTEGRATION
, HOTKEY_PICTUREFLOW
#endif