Viggo Fredriksen wrote:
Hi.
Attached is a patch allowing real keyboard text-input. It allows plugins to set event-context='text' and recieve unicode text from keyboard if config.TEXT_USE_KEYBOARD=1 is set.
Attached is also a new version of the text-input I have for the mail plugin which can use both multitap and the new keyboard text-input.
I changed some inside stuff and it would be nice if you could rebuild your patch. Can you merge the textinput into LetterBoxGroup.py? It would be cool to have one widget doing all the stuff.
I'll take a look at it. What's using this input method now? I think I've seen it used in 'Search Guide' earlier, but this has for some reason disappeared from my tv menu after my last cvs update.
As for the
input, osd now knows if we are in INPUT mode, so you won't need the
TEXTINPUT mode. If we are in input mode, should return the key. Maybe
you need some modifications, but it should arrive at the eventhandler
in LetterBoxGroup as event BUTTON with the key as arg.
I took a quick look at the changes and it looks good. I have one objection however; when returning chr(event.key) it won't take modifiers like shift and alt in consideration. Returning event.unicode instead should fix this.
osd.py:OSD._cb():
| if not map and event.key > 30: | try: | if event.unicode != u'': | return event.unicode | except: | pass
and
| else: | # don't know what this is, return it as it is | try: | if event.unicode != u'': | return event.unicode | except: | return None
Something like this seems to work ok on my setup.
Sorry if this is not making sence. I have the worst headache ever and can't consentrate on the simplest of tasks! (Probably not a good idea to send patches in this state :)
And does this makes sence to you?
Sure (or better: I'd like to hope so).
Dischi
Viggo
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel