[mythtv-users] Keybindings / Jumppoints

Michael T. Dean mtdean at thirdcontact.com
Thu Jan 19 19:18:02 UTC 2017


On 01/19/2017 12:27 PM, Angela wrote:
>
> I would like to have more available keys in playback tv/video for 
> scrolling through the audio and subtitles, video editing (missing key 
> bindings for setting cuts atm), etc.
>

I assume you mean that your remote is limited in available buttons and, 
therefore, you haven't mapped any of the available key bindings to 
buttons on your remote...

> I use several jump points/keys, which I like very much. However during 
> playback I would rather have these keys available. Exiting playback 
> and press a jump key is not much of a hassle.
>
> I made the following change and configured the keys on the DB as it is 
> not allowed to set used jump keys. It works great.
>
> mythtv/libs/libmythtv/tv_play.cpp
>
> @@ -3954,7 +3954,7 @@ bool TV::TranslateKeyPressOrGesture(const 
> QString &context,
>
>      if (QEvent::KeyPress == e->type())
>
>      {
>
>          return GetMythMainWindow()->TranslateKeyPress(
>
> -                    context, (QKeyEvent*)e, actions, allowJumps);
>
> +                    context, (QKeyEvent*)e, actions, false && 
> allowJumps);
>
> Why is MythTV designed to not override jump keys. Would it be not 
> better to leave it to the user when he wants to override a key locally 
> (playback, editing, teletext, etc.), suppressing the jump key?
>

The design of jump points was to allow an action that overrides both 
local and global contexts--i.e. it's at the top of the chain--to allow 
you to "jump" from one action/area/context to another.  There was (very 
long) discussion of the idea of allowing local actions to take 
precedence over jumps back in '07, but was decided to be too much of a 
change-of-purpose of jump points and generally could result in 
unexpected behaviors, so it was decided to limit the places in which 
this could be done (i.e. you can map a jump point to Program Guide and 
map the same key in TV Playback context to GUIDE and the local binding 
is explicitly coded to override the jump.

See:
https://code.mythtv.org/trac/ticket/3363
https://lists.gt.net/mythtv/dev/273716
https://code.mythtv.org/trac/ticket/3642
https://lists.gt.net/mythtv/users/283759

FWIW, you could get the behavior (that IIUC) you want using LIRC 
modes--i.e. hit a button and change the mode of the remote so you have a 
playback mode that maps the buttons to one set of keys and a main mode 
that maps the buttons to other keys (and ...).

Mike


More information about the mythtv-users mailing list