mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
- keybind-setup: fix assignable keys for movieplayer; ...
...timeshift isn't a movieplayer key.
This commit is contained in:
@@ -190,11 +190,9 @@ const key_settings_struct_t key_settings[CKeybindSetup::KEYBINDS_COUNT] =
|
||||
{LOCALE_MPKEY_TIME, &g_settings.mpkey_time, LOCALE_MENU_HINT_KEY_MPTIME },
|
||||
{LOCALE_MPKEY_BOOKMARK, &g_settings.mpkey_bookmark, LOCALE_MENU_HINT_KEY_MPBOOKMARK },
|
||||
{LOCALE_MPKEY_GOTO, &g_settings.mpkey_goto, NONEXISTANT_LOCALE},
|
||||
//{LOCALE_MPKEY_NEXT3DMODE, &g_settings.mpkey_next3dmode, NONEXISTANT_LOCALE},
|
||||
{LOCALE_MPKEY_NEXT_REPEAT_MODE, &g_settings.mpkey_next_repeat_mode, NONEXISTANT_LOCALE},
|
||||
//{LOCALE_MPKEY_VTXT, &g_settings.mpkey_vtxt, NONEXISTANT_LOCALE},
|
||||
{LOCALE_EXTRA_KEY_TIMESHIFT, &g_settings.key_timeshift, LOCALE_MENU_HINT_KEY_MPTIMESHIFT },
|
||||
{LOCALE_MPKEY_PLUGIN, &g_settings.mpkey_plugin, LOCALE_MENU_HINT_KEY_MPPLUGIN },
|
||||
{LOCALE_EXTRA_KEY_TIMESHIFT, &g_settings.key_timeshift, LOCALE_MENU_HINT_KEY_MPTIMESHIFT },
|
||||
{LOCALE_EXTRA_KEY_UNLOCK, &g_settings.key_unlock, LOCALE_MENU_HINT_KEY_UNLOCK},
|
||||
{LOCALE_EXTRA_KEY_HELP, &g_settings.key_help, NONEXISTANT_LOCALE},
|
||||
{LOCALE_EXTRA_KEY_NEXT43MODE, &g_settings.key_next43mode, NONEXISTANT_LOCALE},
|
||||
@@ -412,6 +410,12 @@ void CKeybindSetup::showKeyBindSetup(CMenuWidget *bindSettings)
|
||||
mf->setHint("", LOCALE_MENU_HINT_KEY_SPECIAL_ACTIVE);
|
||||
bindSettings->addItem(mf);
|
||||
|
||||
bindSettings->addItem(new CMenuSeparator());
|
||||
|
||||
// timeshift
|
||||
mf = new CMenuForwarder(key_settings[NKEY_TIMESHIFT].keydescription, true, keychooser[NKEY_TIMESHIFT]->getKeyName(), keychooser[NKEY_TIMESHIFT]);
|
||||
mf->setHint("", key_settings[NKEY_TIMESHIFT].hint);
|
||||
bindSettings->addItem(mf);
|
||||
// unlock
|
||||
mf = new CMenuForwarder(key_settings[NKEY_UNLOCK].keydescription, true, keychooser[NKEY_UNLOCK]->getKeyName(), keychooser[NKEY_UNLOCK]);
|
||||
mf->setHint("", key_settings[NKEY_UNLOCK].hint);
|
||||
@@ -490,7 +494,7 @@ void CKeybindSetup::showKeyBindMovieplayerSetup(CMenuWidget *bindSettings_mplaye
|
||||
{
|
||||
bindSettings_mplayer->addIntroItems(LOCALE_MAINMENU_MOVIEPLAYER);
|
||||
|
||||
for (int i = MPKEY_REWIND; i < MPKEY_PLUGIN; i++) {
|
||||
for (int i = MPKEY_REWIND; i <= MPKEY_PLUGIN; i++) {
|
||||
CMenuForwarder * mf = new CMenuForwarder(key_settings[i].keydescription, true, keychooser[i]->getKeyName(), keychooser[i]);
|
||||
mf->setHint("", key_settings[i].hint);
|
||||
bindSettings_mplayer->addItem(mf);
|
||||
|
@@ -75,11 +75,9 @@ class CKeybindSetup : public CMenuTarget, public CChangeObserver
|
||||
MPKEY_TIME,
|
||||
MPKEY_BOOKMARK,
|
||||
MPKEY_GOTO,
|
||||
//MPKEY_NEXT3DMODE,
|
||||
MPKEY_NEXT_REPEAT_MODE,
|
||||
//MPKEY_VTXT,
|
||||
NKEY_TIMESHIFT,
|
||||
MPKEY_PLUGIN,
|
||||
NKEY_TIMESHIFT,
|
||||
NKEY_UNLOCK,
|
||||
NKEY_HELP,
|
||||
NKEY_NEXT43MODE,
|
||||
|
Reference in New Issue
Block a user