Commit bd66b12a authored by vsn4ik's avatar vsn4ik
Browse files

Use e.target instead :focus selector.

parent ccecb7cd
Showing with 1 addition and 1 deletion
+1 -1
......@@ -77,7 +77,7 @@
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 == 40 && index < $items.length - 1) index++ // down
......
Supports Markdown
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