projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bf56dc
)
Set focus also on htm5 input type="search".
author
Daniel Carl
<danielcarl@gmx.de>
Mon, 20 Apr 2015 20:35:18 +0000
(22:35 +0200)
committer
Daniel Carl
<danielcarl@gmx.de>
Mon, 20 Apr 2015 20:35:18 +0000
(22:35 +0200)
Allow to focus input type search on running normal mode command 'gi'.
src/dom.c
patch
|
blob
|
history
diff --git
a/src/dom.c
b/src/dom.c
index
74eeb50
..
e8c2430
100644
(file)
--- a/
src/dom.c
+++ b/
src/dom.c
@@
-104,7
+104,8
@@
void dom_focus_input(WebKitWebView *view)
* intput filed of type="TEXT" are matched. */
result = webkit_dom_document_evaluate(
doc, "//input[not(@type) or translate(@type,'ETX','etx')='text' "
- "or translate(@type,'ADOPRSW','adoprsw')='password']|//textarea",
+ "or translate(@type,'ADOPRSW','adoprsw')='password' "
+ "or translate(@type,'ACEHRS','acehrs')='search']|//textarea",
html, resolver, 5, NULL, NULL
);
if (!result) {