diff options
| author | Jez Ng | 2012-07-07 05:23:15 -0700 | 
|---|---|---|
| committer | Jez Ng | 2012-07-07 05:23:15 -0700 | 
| commit | 2dd745886ecdadb2ba6a5dbb38e3857211765378 (patch) | |
| tree | ca42ebdb81ae40f6c8ac64508da34ad3f86d665d | |
| parent | 61cd2ad7eaa720bf7aec0417336be692045442c7 (diff) | |
| download | vimium-2dd745886ecdadb2ba6a5dbb38e3857211765378.tar.bz2 | |
Make Vomnibar tabbing scroll circularly.
| -rw-r--r-- | content_scripts/vomnibar.coffee | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/content_scripts/vomnibar.coffee b/content_scripts/vomnibar.coffee index 146a8aa8..e60d6e52 100644 --- a/content_scripts/vomnibar.coffee +++ b/content_scripts/vomnibar.coffee @@ -92,10 +92,12 @@ class VomnibarUI      if (action == "dismiss")        @hide()      else if (action == "up") -      @selection -=1 if @selection >= 0 +      @selection -= 1 +      @selection = @completions.length - 1 if @selection < -1        @updateSelection()      else if (action == "down") -      @selection += 1 if (@selection < @completions.length - 1) +      @selection += 1 +      @selection = -1 if @selection == @completions.length        @updateSelection()      else if (action == "enter")        # If they type something and hit enter without selecting a completion from our list of suggestions, | 
