}
}
+/**
+ * Give the focus to element.
+ */
+void dom_give_focus(Element *element)
+{
+ webkit_dom_element_focus(element);
+}
+
/**
* Find the first editable element and set the focus on it and enter input
* mode.
void dom_install_focus_blur_callbacks(Document *doc);
void dom_check_auto_insert(Document *doc);
void dom_clear_focus(WebKitWebView *view);
+void dom_give_focus(Element *element);
gboolean dom_focus_input(Document *doc);
gboolean dom_is_editable(Element *element);
Element *dom_get_active_element(WebKitWebView *view);
/* disable the active element */
dom_editable_element_set_disable(active, true);
- dom_clear_focus(vb.gui.webview);
EditorData *data = g_slice_new0(EditorData);
data->file = file_path;
g_free(text);
}
dom_editable_element_set_disable(data->element, false);
+ dom_give_focus(data->element);
g_unlink(data->file);
g_free(data->file);