[maemo-developers] [maemo-developers] VKB problems

From: Tomas Junnonen tomas.junnonen at nokia.com
Date: Mon Dec 4 13:06:43 EET 2006
ext Tomas Frydrych wrote:
> I am trying to put together package of AbiWord 2.4.6 for Maemo 2.1, but
> run into difficulties with the VKB -- the kbd never comes up when the
> window is clicked on, although the same code used to work with OS2005.
> 
> I see in the Maemo 2.1 docs that "the input methods work automatically
> ... whenever text widgets (entry, text view) are pressed ..." -- is
> there a way to make the VKB to work automatically for a widget of a
> different type, or do I have to manually call
> hildon_gtk_im_context_show() on focus_in events ?

Yes, in Maemo 2.x you need to call hildon_gtk_im_context_show if you
implement your own text widgets. In OS2005 the VKB was tied to the focus
and there was a "use-show-hide" property to override this behavior, but
now it's assumed the widget will take care of it.

Also, in OS2006 the input method does not open on focus in but when you
actually click the widget. If you also want the full screen finger
keyboard to work when the user presses with his finger on the AbiWord
text area, you need pass both the button press and release events of the
widget through the hildon_gtk_im_context_filter_event function. I
recommend looking at the GtkEntry code in the stage.maemo.org SVN as an
example.

Regards,
Tomas


More information about the maemo-developers mailing list