Is there any reason not making the text entry focused before sending KeyPress event to it?
eion at robbmob.com
Mon Jul 16 00:51:40 EDT 2012
Does it not grab the focus so that the ctrl+tab key combo still works?
On 16 July 2012 16:12, Yichao Yu <yyc1992 at gmail.com> wrote:
> O, and btw, I have already reported this bug fix 5 weeks ago (with no
> reply) in ticket #15159.
> Yichao Yu
> On Mon, Jul 16, 2012 at 12:06 AM, Yichao Yu <yyc1992 at gmail.com> wrote:
>> Hi All,
>> When pressing a key in pidgin's chat window, the key will be sent to
>> the input entry even if it is not focused. However, this event is not
>> sent to input method (which is REALLY annoy for ppl like me that uses
>> input method!!!)
>> Looking at the source code, in pidgin/gtkconv.c (arround line 2271)
>> if (event->type == GDK_KEY_RELEASE)
>> gtk_widget_event(gtkconv->entry, (GdkEvent *)event);
>> which means the entry will not be focused when a keypress event is
>> sent and this causes the imcontext not sending the event to input
>> method. Since the event will anyway be sent to the entry, I cannot see
>> the point why it should not be focused. Is there really any specific
>> reason for doing that?
>> (btw, afaik, removing the if line fixes the input method issue perfectly)
>> Yichao Yu
> Devel mailing list
> Devel at pidgin.im
More information about the Devel