From 0e79b977d2007e6ec026ce5e83c5f66b0ca4e22c Mon Sep 17 00:00:00 2001 From: Cornelius <cornelius.amzar@bsz-bw.de> Date: Mon, 23 Nov 2015 14:34:57 +0100 Subject: [PATCH] Prevent this event when search input has focus Some uses mentioned that they want to navigate in the input using the arrow keys. This is possible now. --- themes/bootstrap3/js/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 5e37ec3edef..b0fc0cad68a 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -356,7 +356,8 @@ function setupAutocomplete() { * @returns {undefined} */ function keyboardShortcuts() { - if ($('.pager').length > 0) { + var $searchform = $('#searchForm_lookfor'); + if ($('.pager').length > 0 && !$searchForm.is(':focus')) { $(window).keydown(function(e) { $target = null; switch (e.keyCode) { -- GitLab