[mythtv] KeyBinding sub-context patch

John P Poet jppoet at gmail.com
Mon Oct 23 01:37:36 UTC 2006


The attached patch adds a "sub" context to the key bindings.

Specifically, it modifies:

    REG_KEY("TV Playback/Live", "CHANNELUP", "Channel up", "Up");
    REG_KEY("TV Playback/Live", "CHANNELDOWN", "Channel down", "Down");
    REG_KEY("TV Playback/Live", "NEXTFAV", "Switch to the next
favorite channel", "/");
    REG_KEY("TV Playback/Live", "PREVCHAN", "Switch to the previous
channel", "H");
    REG_KEY("TV Playback/Live", "TOGGLEINPUTS", "Toggle Inputs", "C");
    REG_KEY("TV Playback/Live", "SWITCHCARDS", "Switch Capture Cards", "Y");
    REG_KEY("TV Playback/Live", "TOGGLEBROWSE", "Toggle channel browse
mode", "O");
    REG_KEY("TV Playback/Live", "TOGGLEFAV", "Toggle the current
channel as a favorite", "?");
    REG_KEY("TV Playback/Rec", "QUEUETRANSCODE", "Queue the current
recording for transcoding", "X");
    REG_KEY("TV Playback/Live", "TOGGLECHANCONTROLS", "Recording
picture adjustments for this channel",  "Ctrl+G");
    REG_KEY("TV Playback/Live", "TOGGLERECCONTROLS", "Recording
picture adjustments for this recorder", "G");
    REG_KEY("TV Playback/Rec", "JUMPPREV", "Jump to previously played
recording", "");
    REG_KEY("TV Playback/Live", "SIGNALMON", "Monitor Signal Quality", "F7");
    REG_KEY("TV Playback/DVD", "JUMPTODVDCHAPTERMENU", "DVD Chapter Menu", "S");
    REG_KEY("TV Playback/DVD", "JUMPTODVDROOTMENU", "Jump to the DVD
Root Menu", "");

The "/Live", "/Rec", and "/DVD" means that keybinding will only take
effect if in "Live", "Watch Recording", and "Watch DVD" modes,
respectively.

A keypress will be translated in the sub-context, and then in the
parent-context.  In other words, while watching live tv, the "S" key
will be translated in both the "TV Playback/Live" context, and the "TV
Playback" context, with the "TV Playback/Live" taking precedence.

This patch also tweaks the priority such that the "local" context take
priority over the Global-JumpPoints context.  This means you can use
the same key on your remote to bring up the Guide in live TV, that you
use to bring up the DVDRootMenu when watching a DVD.

It also separates Channel-Up and Page-Up.  You can bind the same key
to both actions to get the old behavior.  If you want to bind
different keys, however, you can.  This means that CH- on your remote
can perform a page-up in the Guide, while doing a decrement channel
while watching live tv.

The reason I am not posting this as a ticket on trac, is it needs more
testing.  Especially in live tv mode.  I basically never use live tv
mode.  If someone that does use live tv mode could test this, I would
appreciate it.

I would also appreciate any feedback on which key bindings would
benefit from a sub-context.

Thanks,

John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KeyBinding-subcontext.patch
Type: text/x-patch
Size: 14443 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20061022/8e916bb1/attachment.bin 


More information about the mythtv-dev mailing list