[mythtv-commits] Ticket #9613: Multi-key bindings

MythTV noreply at mythtv.org
Fri Feb 25 02:29:46 UTC 2011


#9613: Multi-key bindings
------------------------------------------------+--------------------------
 Reporter:  Jim Stichnoth <stichnot@…>          |           Type:  Patch -
   Status:  new                                 |  Feature
Milestone:  unknown                             |       Priority:  minor
  Version:  Trunk Head                          |      Component:  MythTV -
 Keywords:                                      |  General
                                                |       Severity:  medium
                                                |  Ticket locked:  0
------------------------------------------------+--------------------------
 This patch adds support for emacs-style multi-key bindings, which is
 useful for smaller remote controls without enough buttons to map all your
 favorite actions.  This is especially useful for the TV Playback context
 which has more than 100 available keybindings.

 Before using this patch, you must manually execute the following mysql
 command.  Unpatched code will still work correctly even after executing
 the command.  If you try the patch without executing the mysql command,
 there's a good chance that *all* your keybindings will be reset to their
 defaults.

 {{{
 ALTER TABLE keybindings ADD COLUMN multikey varchar(128) default NULL;
 }}}


 The implementation currently has a few limitations.  (Translation: I'd
 rather not do all the work before the patch is in principle accepted...)

 1. Multi-key bindings are only handled in the TV Playback context, as well
 as the associated Global bindings.  It would be very simple to support
 other contexts, except that I don't know how to provide reasonable
 feedback without an OSD object available.

 2. Multi-key bindings are not (yet) implemented for JumpPoints.

 3. The only way to edit the multi-key bindings is through MythWeb with the
 attached patch.

 4. Multi-key bindings are limited to 4 keys, due to the use of
 QKeySequence.

 5. There is practically no checking for conflicts between regular
 keybindings and multi-key bindings.

 6. It might be better if there were a timer to reset multi-key input after
 so long, like the QueuedInput related code currently there.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9613>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list