add Ctrl+F shortcut for the search bar
This commit is contained in:
parent
2479363492
commit
089cd56e00
|
@ -343,6 +343,13 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).keydown(function(event) {
|
||||||
|
if ((event.ctrlKey || event.metaKey) && !event.shiftKey && event.keyCode === 70) { // Ctrl+F
|
||||||
|
$searchBox.focus();
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$searchResults.on('click', 'tr.result', function (event) {
|
$searchResults.on('click', 'tr.result', function (event) {
|
||||||
var $row = $(this);
|
var $row = $(this);
|
||||||
var item = $row.data('result');
|
var item = $row.data('result');
|
||||||
|
|
Loading…
Reference in New Issue