From 71b609e5e23a894a551884f118d3625251c7aad3 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 2 Feb 2015 06:00:53 +0000 Subject: 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. --- content_scripts/vimium_frontend.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content_scripts') 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 -- cgit v1.2.3