[mythtv-commits] Ticket #9613: Multi-key bindings
MythTV
noreply at mythtv.org
Fri Mar 4 17:48:25 UTC 2011
#9613: Multi-key bindings
------------------------------------------------+--------------------------
Reporter: Jim Stichnoth <stichnot@…> | Owner: mdean
Type: Patch - Feature | Status: accepted
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Trunk
Severity: medium | Head
Keywords: | Resolution:
| Ticket locked: 0
------------------------------------------------+--------------------------
Comment (by Jim Stichnoth <stichnot@…>):
Updated with new mythtv and mythweb patches that add similar multi-key
binding support for jump points.
The jumppoints table needs to be modified before using this patch. As
before, unpatched code will still work with the updated database. The
complete mysql is:
{{{
ALTER TABLE keybindings ADD COLUMN multikey varchar(128) default NULL;
ALTER TABLE jumppoints ADD COLUMN multikey varchar(128) default NULL;
}}}
To simplify the code, the original single-key bindings are now treated as
non-special cases of multi-key bindings.
To maintain a good user experience, if the current queued input sequence
ends with a single-key jump point action, the jump point takes precedence
and is immediately handled.
Because of the nontrivial interplay between jump points and regular
bindings (specifically, the possibility that a jump point with a local
action with the same key binding will be treated as the local action
rather than the jump point action), MythMainWindow::TranslateKeyPress()
had to be largely refactored/rewritten.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9613#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list