diff options
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js index c5df6372..5baffa47 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -231,12 +231,16 @@ function focusInput(count) { var i = 0; while (i < count) { - i += 1; - var currentInputBox = results.iterateNext(); if (!currentInputBox) { break; } + var clientRect = currentInputBox.getClientRects()[0]; + if (!linkHints.isVisible(currentInputBox, clientRect)) + continue; + lastInputBox = currentInputBox; + + i += 1; } if (lastInputBox) { lastInputBox.focus(); } |
