diff options
| author | Stephen Blott | 2015-02-02 06:00:53 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-02-02 06:00:53 +0000 |
| commit | 71b609e5e23a894a551884f118d3625251c7aad3 (patch) | |
| tree | de95ef497ebacc58a64dab94277efc23a3423fb1 /content_scripts | |
| parent | 4e3633c0384e3f37041be14ad3a784c8d27a484b (diff) | |
| download | vimium-71b609e5e23a894a551884f118d3625251c7aad3.tar.bz2 | |
Provide visual feedback from focusInput if there is no visible input.
If focusInput does not find a visible input, then pop up the HUD to tell
the user. Without this, the user gets no feedback as to what happened.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 095bdb74..56aabdca 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -353,7 +353,9 @@ extend window, continue if rect == null { element: element, rect: rect } - return if visibleInputs.length == 0 + if visibleInputs.length == 0 + HUD.showForDuration("There are no inputs to focus.", 1000) + return selectedInputIndex = if count == 1 |
