On Thu, Jan 24, 2013 at 7:04 PM, Ajay Garg <a...@activitycentral.com> wrote:

>
>
> On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard <gonz...@laptop.org>wrote:
>
>> > Please find attached a sample screenshot of the "Speak" activity; the
>> window
>>
>>>  > has been resized to 0.7 of the original size (the screenshot doesn't
>>>> show a
>>>> > keyboard yet,  as it was done on  sugar-build).
>>>>
>>>> Question: Do all activities behave properly when the screen is scaled
>>>> that way? (I don't know that all activities are paying attention to
>>>> resizing events. One quick way to check is to look at what happens
>>>> when activities are rotated.)
>>>>
>>>
>>> I will be receiving my XO-4 Touch in a couple of days; will answer  this
>>> question then, after testing it in real-time :)
>>>
>>>
>> XO-4 does not support rotate the screen yet. You should try with other
>> models.
>>
>
> Ok, thanks for the info :)
>
>
>
>>
>>
>>
>>> Just figured out one thing via Nitika's XO-4-Touch (thanks to Nitika for
>>> bearing my brunt of the testing-questions !!), that pressing all 4
>>> game-keys at once, does toggle the appearance of the OSK !!
>>>
>>> So, I guess, we DO have a point, wherein we can hack "resizing" of the
>>> window.
>>>
>>> So, now I have another question ::
>>> Where is the code for "handling game keys" handled (as far as appearance
>>> and disappearance of the OSK is concerned) ?
>>> In Firmware? In Sugar? Elsewhere?
>>
>>
>> The keyboard appear because you pressed a key (you don't need press the 4
>> at once, any key will show it)
>>
>> Detecting osk show/hide. is more complicate than should be, in my point
>> of view. Probably, because the idea behind this is the osk should appear
>> and hide in a automatic way based in the widgets needs.
>>
>> I think you should check the class DocumentView in widgets.py in Write
>> activity, to see how the signals are used. Carlos Garnacho worked on this.
>>
>
> Ahh.. that's a nice pointer Gonzalo :)
>
> It seems that only "size-allocate" and "request-clear-area" are the
> signals to be considered (not sure though; again, can only  verify after a
> couple of days).
>
> If these signals are in fact emitted when the OSK appears/disappears by
> pressing a game key, I think we should be done. We would have found a hack
> :)
>
> Keeping fingers crossed, and waiting eagerly for my XO-4-Touch to arrive.
>


Gonzalo,

another thing Nitika and me found,  are the following ::

a)
Ensure that the XO is in normal-mode, and no activity is turned on.

b)
Turn to ebook-mode.

c)
Open "Speak" activity.

d)
OSK appears automatically this time.

e)
Now, pressing the game-key does not cause the OSK to go away :-\
It is only when the "keyboard" key is  pressed, does  the OSK disappear.

f)
If the game-key is pressed again, the OSK appears.


Gist :: Game-key works fine and consistently, when the OSK is required to
be made appeared.
          BUT, it does NOT WORK, if the OSK has been launched automatically.


So, it seems that just hacking onto the game-key won't help :(



>
>
>
>
>>
>> Gonzalo
>>
>>
>>
>>
>>
>>>
>>> Regards,
>>>
>>> Ajay Garg
>>> Dextrose Developer
>>> Activity Central: http://activitycentral.com
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> de...@lists.laptop.org
>>> http://lists.laptop.org/listinfo/devel
>>>
>>>
>>
>> _______________________________________________
>> Devel mailing list
>> de...@lists.laptop.org
>> http://lists.laptop.org/listinfo/devel
>>
>>
>
>
> --
> Regards,
>
> Ajay Garg
> Dextrose Developer
> Activity Central: http://activitycentral.com
>



-- 
Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
_______________________________________________
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Reply via email to