Opened 13 years ago

Closed 12 years ago

#3290 closed defect (worksforme)

Media Previous, Media Next keys skip two entries instead of one in Watch Recordings

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: 0.20
Severity: medium Keywords: media keyboard dayleft dayright prevview nextview
Cc: Ticket locked: no

Description

I have a keyboard with media keys. I have bound two of the media keys (which generate the Qt keysymbols Media Previous and Media Next) to the PREVVIEW and NEXTVIEW functions in Global. In Watch Recordings, however, while the Home and End keys (by default, I believe, also bound to the functions) properly move the field on the left portion of the screen backward and forward one entry at a time, the Media Previous and Next keys move two entries at a time.

I believe this should be treated as a bug (as opposed to an "undocumented feature") as I can't think of any reason for ever wanting to move two entries at once, and especially considering that this bug is only visible when Media Previous and Next keys are bound to these functions. That is, without being bound, the keys don't do anything at all in Watch Recordings. If they are bound, they should surely be considered synonyms of any other keys also bound to the same functions and should behave in identical ways.

(Note also that it has nothing to do with any peculiarity about the media keys per se. If I bind the keys to the DAYLEFT and DAYRIGHT functions in TV Frontend, the keys properly move the view in Program Guide backward and forward by one day, not two.)

Change History (1)

comment:1 Changed 12 years ago by stuartm

Resolution: worksforme
Status: newclosed

Just can't see how this is a bug within mythtv. We treat media keys like any other key, so this implies we are receiving two keypresses from X11. Try running xev or sticking a debugging statement into MythMainWindow? to find out exactly how many keypress events are triggered by a single keypress.

The fact that it works in some places of mythtv and not others can be explained by the fact that in some areas we queue all keypresses and in others we discard anything received while processing an action.

Note: See TracTickets for help on using tickets.