From: Sébastien Marie Date: Mon, 20 Apr 2015 15:46:29 +0000 (+0200) Subject: enable input-mode on input.search element X-Git-Url: https://git.owens.tech/rss.xml/rss.xml/git?a=commitdiff_plain;h=0bf56dc2d9605dcd310c5a631bea884bf573a9b6;p=vimb.git enable input-mode on input.search element HTML5 define a new input type="search": http://www.w3.org/TR/html-markup/input.search.html declare this element to be editable, in order to switch in input-mode when use it. --- diff --git a/src/dom.c b/src/dom.c index 9757704..74eeb50 100644 --- a/src/dom.c +++ b/src/dom.c @@ -140,7 +140,8 @@ gboolean dom_is_editable(Element *element) if (!g_ascii_strcasecmp(tagname, "textarea")) { result = true; } else if (!g_ascii_strcasecmp(tagname, "input") - && (!*type || !g_ascii_strcasecmp(type, "text") || !g_ascii_strcasecmp(type, "password")) + && (!*type || !g_ascii_strcasecmp(type, "text") || !g_ascii_strcasecmp(type, "password") + || !g_ascii_strcasecmp(type, "search")) ) { result = true; } else {