Merge branch 'rapid_normal_hints' of https://github.com/rcorre/qutebrowser into rcorre-rapid_normal_hints
This commit is contained in:
commit
7b852a7bbb
@ -846,7 +846,7 @@ class HintManager(QObject):
|
||||
if rapid:
|
||||
if target in [Target.tab_bg, Target.window, Target.run,
|
||||
Target.hover, Target.userscript, Target.spawn,
|
||||
Target.download]:
|
||||
Target.download, Target.normal, Target.current]:
|
||||
pass
|
||||
elif (target == Target.tab and
|
||||
config.get('tabs', 'background-tabs')):
|
||||
|
14
tests/end2end/data/hints/buttons.html
Normal file
14
tests/end2end/data/hints/buttons.html
Normal file
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Rapid hinting with buttons</title>
|
||||
</head>
|
||||
<body>
|
||||
<input type="text" id="number" value="0"/>
|
||||
<button onclick="console.log('beep!')">beep!</button>
|
||||
<button onclick="console.log('bop!')">bop!</button>
|
||||
<button onclick="console.log('boop!')">boop!</button>
|
||||
</body>
|
||||
</html>
|
@ -97,6 +97,16 @@ Feature: Using hints
|
||||
And I run :follow-hint a
|
||||
Then the clipboard should contain "http://localhost:(port)/data/hello.txt"
|
||||
|
||||
Scenario: Using hint --rapid to hit multiple buttons
|
||||
When I open data/hints/buttons.html
|
||||
And I run :hint --rapid
|
||||
And I run :follow-hint s
|
||||
And I run :follow-hint d
|
||||
And I run :follow-hint f
|
||||
Then the javascript message "beep!" should be logged
|
||||
And the javascript message "bop!" should be logged
|
||||
And the javascript message "boop!" should be logged
|
||||
|
||||
### iframes
|
||||
### FIXME currenly skipped, see https://github.com/The-Compiler/qutebrowser/issues/1525
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user