[mythtv] Ticket #9658: Pressing F1 while viewing program info causes hang-like behaviour

Paul Harrison mythtv at sky.com
Sat Mar 12 23:43:46 UTC 2011

On Sat, Mar 12, 2011 at 10:59 PM, John Veness
<John.Veness.mythtv at pelago.org.uk> wrote:
>  From http://code.mythtv.org/trac/ticket/9658 :
> > Description:
> >
> > Steps to reproduce:
> >
> > 1, Go into Watch Recordings
> > 2, Highlight any recording
> > 3, Press I
> > 4, Press F1
> >
> > At this point the frontend seems to hang. You cannot scroll the program info window up or down and cannot press Esc to back out. However, a second press of F1 brings it back to life.
> >
> > Changes (by paulh):
> >
> >   * status:  new =>  closed
> >   * resolution:   =>  Invalid
> >
> > Comment:
> >
> >   It's actually working as it should.
> >
> >   The web browser mythui widget needs to know where the key presses should
> >   be processed either by myth or by the Qt QWebView browser widget we use
> >   behind the scenes. For example if you press 'm' should that open the popup
> >   menu or should it enter an 'm' in an edit box on a web page? In order to
> >   toggle where key presses get handled there is a TOGGLEINPUT key binding
> >   (set to F1 by default) which switches where key presses get handled.
> >
> >   Without it there would be no way to enter many keys like 'm' or 'i' in a
> >   search edit on a web page for example because myth would get the key
> >   before the web page.
> Hi Paul,
> Thanks for the explanation. I don't use the web browser in MythTV so
> wasn't aware of the F1/TOGGLEINPUT behaviour. However, as far as I can
> tell, the program info window doesn't have anywhere in it that accepts
> input, unlike a web page, so can you not tell the widget to ignore the
> TOGGLEINPUT when appropriate?
> In my case, I found this problem in the program info window when I
> accidentally pressed F1 instead of Esc on a keyboard due to their close
> proximity. As nothing appeared on screen, I thought it had hung. Maybe
> an alternative fix would be for an some kind of indication when
> TOGGLEINPUT has been pressed, although as I say, in this particular
> screen I don't think TOGGLEINPUT should do anything.
> Cheers,
> John
> --
> John Veness, MythTV user, UK, DVB-T

While there is no need for TOGGLEINPUT on the default programstails
screen there is nothing stopping theme developers adding links to
other web pages that may need it.

I like the idea of adding something to indicate the current toggle
state and will probably add a statestype to indicate the current state
at least to MythBrowser. A dev has been threatening to remove the
current program details page because he doesn't like the fact it uses
html and will replace it with something else so not sure I want to
spend any time updating that one. I doubt most users even know the
program details screen is a dynamically generated html page or care if
it uses html or not so long as it shows the info they want :)

Paul H.

More information about the mythtv-dev mailing list