The function in Pidgin which does this is pidgin/gtkconv.c:refocus_entry_cb.
I've tried to make a carbon copy of it in Python (I assumed there would be no more elegant way to do it), but it didn't behave quite the same. I think what I have right now is acceptable, when you type any text in the log_view it will switch focus and pass on the event. The major different with Pidgin is that any text already in task_entry will be deleted, the typed character is not appended.
Relevant discussion on IRC( #pidgin@freenode):
[22:27:27] <khc> unfortunately that doesn't interact well with other input methods
[22:28:19] <Brucevdk> khc: can you elaborate?
[22:29:23] <khc> some input methods require multiple keystrokes to enter one character
The function in Pidgin which does this is pidgin/ gtkconv. c:refocus_ entry_cb.
I've tried to make a carbon copy of it in Python (I assumed there would be no more elegant way to do it), but it didn't behave quite the same. I think what I have right now is acceptable, when you type any text in the log_view it will switch focus and pass on the event. The major different with Pidgin is that any text already in task_entry will be deleted, the typed character is not appended.
Relevant discussion on IRC( #pidgin@freenode):
[22:27:27] <khc> unfortunately that doesn't interact well with other input methods
[22:28:19] <Brucevdk> khc: can you elaborate?
[22:29:23] <khc> some input methods require multiple keystrokes to enter one character