broadway: Support ipad on-screen keyboard

We add a custom im module for broadway that calls some broadway
specific APIs to show/hide the keyboard on focus in/out. We then forward this
to the browser, and on the ipad we focus an input field to activate
the keyboard.
This commit is contained in:
Alexander Larsson
2013-11-13 12:20:07 +01:00
parent ca89f5ab93
commit 4226f97d54
15 changed files with 318 additions and 6 deletions

View File

@ -346,6 +346,22 @@ gdk_broadway_display_event_data_free (GdkDisplay *display,
{
}
void
gdk_broadway_display_show_keyboard (GdkBroadwayDisplay *display)
{
g_return_if_fail (GDK_IS_BROADWAY_DISPLAY (display));
_gdk_broadway_server_set_show_keyboard (display->server, TRUE);
}
void
gdk_broadway_display_hide_keyboard (GdkBroadwayDisplay *display)
{
g_return_if_fail (GDK_IS_BROADWAY_DISPLAY (display));
_gdk_broadway_server_set_show_keyboard (display->server, FALSE);
}
static void
gdk_broadway_display_class_init (GdkBroadwayDisplayClass * class)
{