* disturbing the user */
gtk_widget_grab_focus(GTK_WIDGET(c->webview));
vb_modelabel_update(c, "-- INPUT --");
+ webkit_web_view_run_javascript(c->webview, "var vimb_input_mode_element = document.activeElement;", NULL, NULL, NULL);
}
/**
*/
void input_leave(Client *c)
{
- webkit_web_view_run_javascript(c->webview, "document.activeElement.blur();", NULL, NULL, NULL);
+ webkit_web_view_run_javascript(c->webview, "vimb_input_mode_element.blur();", NULL, NULL, NULL);
vb_modelabel_update(c, "");
}
*/
void normal_enter(Client *c)
{
- webkit_web_view_run_javascript(c->webview, "document.activeElement.blur();", NULL, NULL, NULL);
/* Make sure that when the browser area becomes visible, it will get mouse
* and keyboard events */
gtk_widget_grab_focus(GTK_WIDGET(c->webview));
*/
void pass_leave(Client *c)
{
+ webkit_web_view_run_javascript(c->webview, "document.activeElement.blur();", NULL, NULL, NULL);
vb_modelabel_update(c, "");
}