[mythtv-users] More inconsistencies in key handling

Jeff Simpson jeffsimpson at alum.wpi.edu
Mon Apr 10 19:46:56 UTC 2006


On 4/8/06, Jeff Simpson <jeffsimpson at alum.wpi.edu> wrote:
> mythcontol has a global definition for common functions, like UP,
> DOWN, LEFT, RIGHT, PAGE UP, PAGE DOWN, ESCAPE, etc
>
> page up and page down don't seem to be defined locally in any sections
> (mythmusic lists, recording lists, etc, when it makes sense to have a
> page up / down feature).
>
> Because Page Up / Down is global instead of local, I can't re-use a
> key for that purpose (shows up as a conflict when I define it). I
> would have liked to define Channel Up / Channel Down to be page
> up/down like they are on a TiVo, because they are right near the arrow
> keys.
>
> I (somehow) managed to use a pair of buttons defined for Page Up /
> Page Down to be both the Page Up and Page Down function and the jump
> ahead/back function, just because pageUp pageDown by default jump, not
> because it's set that way (and wouldn't even be possible to).
>
> Thoughts?

Can anyone shed some light on some of the key binding issues I'm
seeing? I'd like to dive in and correct some of it, but I want to get
an idea of the current state and what direction it should be going in
first.

My personal opinion is that we should be moving away from hard-coded
key commands and having the normal key commands only be the "default"
keybindings (and perhaps have the ability to restore the default).

While the idea of a "global" key setup for things like up, down, left,
right, and enter make sense, some other keys (like page up/down,
home/end) don't make sense. Page up/down, for example, make sense only
for situations where there is something to page up/down through - not
for cases when page up/down is hard-coded to another function (which
it is).

I think that the ideal case would be for LIRC to support arbitrary key
names so that instead of mapping the play key to be "P", you could
just map it to "REMOTE_PLAY" and let myth do the actual key
assignment.

Is anyone else willing to try this out to see what I mean? Just take a
minute and re-map your keys to non-standard keys to see what happens.
It's especially noticable if you decide to use a different key for
up/down/left/right, because they will behave in some menus and not in
others.

 - Jeff


More information about the mythtv-users mailing list