diff --git a/core/search/js/search.js b/core/search/js/search.js index 4e83a07017..ef99cf7e96 100644 --- a/core/search/js/search.js +++ b/core/search/js/search.js @@ -343,6 +343,18 @@ } }); + $(document).keydown(function(event) { + if ((event.ctrlKey || event.metaKey) && // Ctrl or Command (OSX) + !event.shiftKey && + event.keyCode === 70 && // F + self.hasFilter(getCurrentApp()) && // Search is enabled + !$searchBox.is(':focus') // if searchbox is already focused do nothing (fallback to browser default) + ) { + $searchBox.focus(); + event.preventDefault(); + } + }); + $searchResults.on('click', 'tr.result', function (event) { var $row = $(this); var item = $row.data('result');