Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
71bb7bdf
Commit
71bb7bdf
authored
Jul 20, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue where using arrow keys would require arrow key to be pressed twice
parent
dc1c7b7f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
app/assets/javascripts/gl_dropdown.js.coffee
app/assets/javascripts/gl_dropdown.js.coffee
+2
-5
No files found.
app/assets/javascripts/gl_dropdown.js.coffee
View file @
71bb7bdf
...
@@ -35,8 +35,6 @@ class GitLabDropdownFilter
...
@@ -35,8 +35,6 @@ class GitLabDropdownFilter
$inputContainer
.
removeClass
HAS_VALUE_CLASS
$inputContainer
.
removeClass
HAS_VALUE_CLASS
if
keyCode
is
13
if
keyCode
is
13
if
@
input
.
val
()
isnt
""
and
@
options
.
enterCallback
@
options
.
enterCallback
(
e
)
return
false
return
false
# Only filter asynchronously only if option remote is set
# Only filter asynchronously only if option remote is set
...
@@ -212,7 +210,6 @@ class GitLabDropdown
...
@@ -212,7 +210,6 @@ class GitLabDropdown
data
:
=>
data
:
=>
return
@
fullData
return
@
fullData
callback
:
(
data
)
=>
callback
:
(
data
)
=>
currentIndex
=
-
1
@
parseData
data
@
parseData
data
unless
@
filterInput
.
val
()
is
''
unless
@
filterInput
.
val
()
is
''
...
@@ -225,8 +222,8 @@ class GitLabDropdown
...
@@ -225,8 +222,8 @@ class GitLabDropdown
.
first
()
.
first
()
.
find
(
'a'
)
.
find
(
'a'
)
.
addClass
(
'is-focused'
)
.
addClass
(
'is-focused'
)
enterCallback
:
(
e
)
=>
@
selectRowAtIndex
(
e
,
0
)
currentIndex
=
0
# Event listeners
# Event listeners
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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