mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Moved search hotkey to search.js
This commit is contained in:
@@ -4,6 +4,17 @@ define(
|
||||
'app',
|
||||
'Series/SeriesCollection'
|
||||
], function (App, SeriesCollection) {
|
||||
$(document).on('keydown', function (e){
|
||||
if ($(e.target).is('input')) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.keyCode === 84) {
|
||||
$('.x-series-search').focus();
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$.fn.bindSearch = function () {
|
||||
$(this).typeahead({
|
||||
source : function () {
|
||||
|
Reference in New Issue
Block a user