Yes, I don't know why but now it works. Thanks

On Sun, Oct 11, 2009 at 7:38 AM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Tue, 15 Sep 2009 01:53:24 +0200 Marco Trevisan (Treviño) <m...@3v1n0.net>
> said:
>
> ok... hmmm... 1. i dont see any issue with focus and entires and illume. the
> kbd comes up when u click an entry - it stays up when u focus more than 1
> entry (ie click on another entry if one entry is already focused) and it goes
> down when u focus something that doesnt take input (eg a button). so it works.
> well for me it does here. u'll have to explain what doesnt work for you a bit
> more in detail. 2. the on_focus func is called when an object is focused AND
> unfocused. see _on_focus_hook() in elm_entry - put in printfs. that is
> literally called  in both situations and the:
>
>   if (elm_widget_focus_get(obj))
>
> is there to figure out which.
>
> yes - elm_win_keyboard_mode_set() will request kbd mode to be off then if
> another entry is focused it will then ask it to be on. as such illume has a
> small delay in it for handling kbd "off" requests - if something asks for the
> kbd to be on again within this delay of an off request, then the kbd will just
> stay up or if this delay times out (its something like 0.2 seconds) then the
> kbd will actually pop down.
>
>> Hello an issue I've always noticed in Elementary is that it doesn't
>> handle correctly the focus change (and using it in Illume could cause
>> issues with the virtual keyboard).
>>
>> The widget which suffers mostly this problem is elm_entry since it uses
>> it's own function on focus/unfocus events and when there are two
>> entries, focused_entry and unfocused_entry and you do something like:
>>   elm_object_focus(unfocused_entry);
>> The focused_entry lose the keyboard focus, but doesn't change aspect
>> (since its own function is not called again).
>>
>> So, basically to fix this issue (or workarounding it? :)) I thought that
>> elementary could have just remembered the focused widget clearing the
>> focus to that when a new widget asked for the focus.
>>
>> I've attached two versions of the patch, the first one doesn't care
>> about the window in which the widget is, and simply clears the focus
>> when any widget of the running process requests to be the new focused
>> widget.
>>
>> The second version (better, I think) checks if the widget is in the same
>> window of the widget that is asking for the focus, in that case switches
>> the focus.
>>
>> Maybe could be an idea to reset the focus at all on
>>   elm_object_focus(NULL);
>> By the way I've not implemented it, but it could be useful when we'd
>> like to hide virtual keyboards (il Illume, for example) without using
>> the workaround of focusing another widget (like a button).
>>
>
>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to