On May 26, 2005, at 8:21 PM, jack makrl wrote:
What got me started on the Ctrl key thing in the first place was the
note in the keybindings page of mythweb that explicitly suggests to
use
modifiers for jump points, to avoid overriding regular functions.
Maybe
I'll see if I can fix the Myth lirc code to handle Ctrl keys.
Eventually I'll find something to fix that's at my skill level, this
may be it!
I think the way to handle the control key in lirc is to add the
modifier line in your .lircrc. For example:
begin
prog = mythtv
button =
config =
modifier = control
end
also see: http://www.lirc.org/html/configure.html#lircrc_format
Where did you find that there is a 'modifier' keyword in the lircrc
file? I've looked at that URL in trying to figure this out (was
actually looking at it when I received your email), and I do not see
that listed as a possible keyword. I'll give it a try.
I am looking at the code, and added some logging. When "config = \W",
the Qt key event that is generated has an ascii value of ctrl-W, but
the "modifiers" field does not have CTRL set. When "config = Ctrl+W",
as I found should be correct for the Qt function used to parse the
string being passed in, the resulting Qt event has the ascii value of
W, and the modifiers has the CTRL value set.
So I think I just need to keep digging in the code, and see why the key
events injected from the LIRC code are treated differently than the
native key codes.
-Michael
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users