Merge branch 'Liambeguin-hint_inputs'
This commit is contained in:
commit
32c7518124
@ -171,6 +171,7 @@ Contributors, sorted by the number of commits in descending order:
|
|||||||
* Oliver Caldwell
|
* Oliver Caldwell
|
||||||
* Jonas Schürmann
|
* Jonas Schürmann
|
||||||
* error800
|
* error800
|
||||||
|
* Liam BEGUIN
|
||||||
* Jakub Klinkovský
|
* Jakub Klinkovský
|
||||||
* skinnay
|
* skinnay
|
||||||
* Zach-Button
|
* Zach-Button
|
||||||
|
@ -38,7 +38,7 @@ from qutebrowser.utils import log, usertypes, utils
|
|||||||
|
|
||||||
|
|
||||||
Group = usertypes.enum('Group', ['all', 'links', 'images', 'url', 'prevnext',
|
Group = usertypes.enum('Group', ['all', 'links', 'images', 'url', 'prevnext',
|
||||||
'focus'])
|
'focus', 'inputs'])
|
||||||
|
|
||||||
|
|
||||||
SELECTORS = {
|
SELECTORS = {
|
||||||
@ -50,6 +50,9 @@ SELECTORS = {
|
|||||||
Group.url: '[src], [href]',
|
Group.url: '[src], [href]',
|
||||||
Group.prevnext: 'a, area, button, link, [role=button]',
|
Group.prevnext: 'a, area, button, link, [role=button]',
|
||||||
Group.focus: '*:focus',
|
Group.focus: '*:focus',
|
||||||
|
Group.inputs: ('input[type=text], input[type=email], input[type=url], '
|
||||||
|
'input[type=tel], input[type=number], '
|
||||||
|
'input[type=password], input[type=search], textarea'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,11 +128,19 @@ class SelectionAndFilterTests:
|
|||||||
('<link href="javascript://foo" />', [webelem.Group.all,
|
('<link href="javascript://foo" />', [webelem.Group.all,
|
||||||
webelem.Group.url]),
|
webelem.Group.url]),
|
||||||
|
|
||||||
('<textarea />', [webelem.Group.all]),
|
('<textarea />', [webelem.Group.all, webelem.Group.inputs]),
|
||||||
('<select />', [webelem.Group.all]),
|
('<select />', [webelem.Group.all]),
|
||||||
|
|
||||||
('<input />', [webelem.Group.all]),
|
('<input />', [webelem.Group.all]),
|
||||||
('<input type="hidden" />', []),
|
('<input type="hidden" />', []),
|
||||||
|
('<input type="text" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
('<input type="email" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
('<input type="url" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
('<input type="tel" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
('<input type="number" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
('<input type="password" />', [webelem.Group.inputs,
|
||||||
|
webelem.Group.all]),
|
||||||
|
('<input type="search" />', [webelem.Group.inputs, webelem.Group.all]),
|
||||||
|
|
||||||
('<button />', [webelem.Group.all]),
|
('<button />', [webelem.Group.all]),
|
||||||
('<button href="foo" />', [webelem.Group.all, webelem.Group.prevnext,
|
('<button href="foo" />', [webelem.Group.all, webelem.Group.prevnext,
|
||||||
|
Loading…
Reference in New Issue
Block a user