gitlab-org--gitlab-foss/spec/javascripts
Jacob Schatz b06f9211b0 Merge branch 'lbennett/gitlab-ce-17465-search-for-project-with-cursor-keys' into 'master'
17465 Fixed dropdown cursor key navigation

## What does this MR do?
This MR fixes the use of cursor/arrow/enter key events with search dropdowns, allowing a user to navigate up and down the list with the arrow keys and then select their item with the enter key.
It also applies some *minor* scroll user experience fixes, such as resetting the selected dropdown item every time it opens/closes (also stops multiple dropdowns conflicting) and forcing the dropdown scroll to scroll right to the top or bottom depending on whether they have selected the first or last item, respectively.

## Are there points in the code the reviewer needs to double check?
I would like someone with GitLab experience to check over whether this would harm any unique implementations of the GitLabDropdown or SearchAutocomplete.

## Why was this MR needed?
The current version has incorrectly behaving search dropdowns in the navbar, they either do not navigate using the keyboard or do not use the enter keystroke to select a highlighted item.

## What are the relevant issue numbers?
Fixes #17465.
Closes #20752.
Closes #21014.
**Contributes** to #20754.

## Screenshots (if relevant)
![17465.mp4](/uploads/1145abec226036abbaaa4aa46020f52b/17465.mp4)

See merge request !4781
2016-08-19 19:36:47 +00:00
..
behaviors ES6ify all the things! 2016-07-24 23:45:11 +03:00
boards Fixed bug when moving list 2016-08-17 17:17:39 +01:00
extensions ES6ify all the things! 2016-07-24 23:45:11 +03:00
fixtures Merge branch 'lbennett/gitlab-ce-17465-search-for-project-with-cursor-keys' into 'master' 2016-08-19 19:36:47 +00:00
graphs
u2f ES6ify all the things! 2016-07-24 23:45:11 +03:00
abuse_reports_spec.js.es6 Some more styling tweaks and added jasmine test 2016-08-14 00:54:18 +01:00
application_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
awards_handler_spec.js Award tooltips refer to current user as "You" 2016-08-17 21:25:39 +01:00
datetime_utility_spec.js.coffee
diff_comments_store_spec.js.es6 Fixed issue with expand diff not initializing resolve buttons 2016-08-04 11:27:11 +01:00
gl_dropdown_spec.js.es6 Fixed conflicts 2016-08-18 23:46:23 +01:00
issue_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
labels_issue_sidebar_spec.js.es6 Changed tests to use JS tests 2016-08-19 15:27:18 +01:00
line_highlighter_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
merge_request_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
merge_request_tabs_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
merge_request_widget_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
new_branch_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
notes_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
project_title_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
right_sidebar_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
search_autocomplete_spec.js Fixed specs 2016-08-18 18:17:56 +01:00
shortcuts_issuable_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
spec_helper.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
syntax_highlight_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00
zen_mode_spec.js ES6ify all the things! 2016-07-24 23:45:11 +03:00