Ticket #13234: 20180313_1414_bookmark.patch

File 20180313_1414_bookmark.patch, 1.6 KB (added by Peter Bennett, 3 years ago)

New bookmark key mapping

  • mythtv/libs/libmythtv/tv_actions.h

    diff --git a/mythtv/libs/libmythtv/tv_actions.h b/mythtv/libs/libmythtv/tv_actions.h
    index eecf714..ff501ad 100644
    a b  
    3131#define ACTION_VIEWSCHEDULED     "VIEWSCHEDULED"
    3232#define ACTION_PREVRECORDED      "PREVRECORDED"
    3333#define ACTION_SIGNALMON         "SIGNALMON"
     34#define ACTION_BOOKMARK          "BOOKMARK"
    3435
    3536/* Navigation */
    3637#define ACTION_JUMPPREV             "JUMPPREV"
  • mythtv/libs/libmythtv/tv_play.cpp

    diff --git a/mythtv/libs/libmythtv/tv_play.cpp b/mythtv/libs/libmythtv/tv_play.cpp
    index d6fcb27..15dd26b 100644
    a b void TV::InitKeys(void) 
    828828            "Display scheduled recording list"), "");
    829829    REG_KEY("TV Playback", ACTION_PREVRECORDED, QT_TRANSLATE_NOOP("MythControls",
    830830            "Display previously recorded episodes"), "");
     831    REG_KEY("TV Playback", ACTION_BOOKMARK, QT_TRANSLATE_NOOP("MythControls",
     832            "Add or Remove Bookmark"), "Ctrl+K,Space,Return");
    831833    REG_KEY("TV Playback", ACTION_SIGNALMON, QT_TRANSLATE_NOOP("MythControls",
    832834            "Monitor Signal Quality"), "Alt+F7");
    833835    REG_KEY("TV Playback", ACTION_JUMPTODVDROOTMENU,
    bool TV::ActivePostQHandleAction(PlayerContext *ctx, const QStringList &actions) 
    50435045    bool isdvd  = state == kState_WatchingDVD;
    50445046    bool isdisc = isdvd || state == kState_WatchingBD;
    50455047
    5046     if (has_action(ACTION_SELECT, actions))
     5048    if (has_action(ACTION_BOOKMARK, actions))
    50475049    {
    50485050        if (!islivetv || !CommitQueuedInput(ctx))
    50495051        {