The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 688c925b authored by Cornelius Amzar's avatar Cornelius Amzar
Browse files

Removed preventDefaults as not needed.

parent 0e79b977
No related merge requests found
......@@ -357,8 +357,9 @@ function setupAutocomplete() {
*/
function keyboardShortcuts() {
var $searchform = $('#searchForm_lookfor');
if ($('.pager').length > 0 && !$searchForm.is(':focus')) {
if ($('.pager').length > 0) {
$(window).keydown(function(e) {
if (!$searchform.is(':focus')) {
$target = null;
switch (e.keyCode) {
case 37: // left arrow key
......@@ -387,7 +388,7 @@ function keyboardShortcuts() {
case 40: // down arrow key
break;
}
e.preventDefault();
}
});
}
}
......
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