[mythtv] [PATCH] allow use of media key codes

Joseph Caputo jcaputo1 at comcast.net
Sat Dec 4 16:13:09 UTC 2004


Isaac Richards wrote:
> On Friday 03 December 2004 11:48 pm, Joseph Caputo wrote:
> 
>>So, I was fiddling around with my keybindings and lircrc the other day,
>>when I noticed that Qt defines key codes that correspond to media keys
>>you might find on a fancy keyboard or a remote control.  I figured I'd
>>bind some of my remote buttons to these key codes, seeing as it's more
>>intuitive to bind the "Play" button to the Key_MediaPlay than to some
>>arbitrary letter.  Unfortunately, when I did so, I encountered the
>>following behavior:
> 
> 
> Would you mind removing the unnecessary parts of the patch, please?

Which parts are unnecessary?

Also, I just discovered that if you press one of these keys in a window 
that doesn't handle what the key is bound to, it gets into an infinite 
event redelivery loop and blows out the stack.  I don't *think* the 
patch causes it, but obviously using these multimedia keys is not safe 
until the problem is fixed.  I'm starting to wonder if there isn't 
something wrong with Myth's top-level keyPressEvent handling, because I 
don't think the default Qt event loop behavior will redeliver an event 
indefinitely if it's ignored.  I'll look in to it some more.  If you let 
me know which parts you consider unnecessary, I'll remove them from the 
next version of the patch as well.

-JAC


More information about the mythtv-dev mailing list