Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
bd66b12a
Commit
bd66b12a
authored
10 years ago
by
vsn4ik
Browse files
Options
Download
Email Patches
Plain Diff
Use e.target instead :focus selector.
parent
ccecb7cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/dropdown.js
+1
-1
js/dropdown.js
with
1 addition
and
1 deletion
+1
-1
js/dropdown.js
+
1
-
1
View file @
bd66b12a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment