Commit bd66b12a authored by vsn4ik's avatar vsn4ik

Use e.target instead :focus selector.

parent ccecb7cd
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
if (!$items.length) return if (!$items.length) return
var index = $items.index($items.filter(':focus')) var index = $items.index(e.target)
if (e.keyCode == 38 && index > 0) index-- // up if (e.keyCode == 38 && index > 0) index-- // up
if (e.keyCode == 40 && index < $items.length - 1) index++ // down if (e.keyCode == 40 && index < $items.length - 1) index++ // down
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment