diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index d12a05a12..530138c23 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -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')): diff --git a/tests/end2end/data/hints/buttons.html b/tests/end2end/data/hints/buttons.html new file mode 100644 index 000000000..8cbd280da --- /dev/null +++ b/tests/end2end/data/hints/buttons.html @@ -0,0 +1,14 @@ + + + + + + Rapid hinting with buttons + + + + + + + + diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index b64c863c9..9d4470ebe 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -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