1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Keyboard shortcut legend

New: Show keybaord shortcuts with '?'
New: ctrl+s will save settings
This commit is contained in:
Mark McDowall
2014-07-29 00:10:07 -07:00
parent 7fc3b971f6
commit e71de9cc29
10 changed files with 141 additions and 14 deletions
+4 -13
View File
@@ -3,23 +3,14 @@ define(
[
'underscore',
'jquery',
'vent',
'backbone',
'Series/SeriesCollection',
'typeahead'
], function (_, $, Backbone, SeriesCollection) {
$(document).on('keydown', function (e) {
if ($(e.target).is('input') || $(e.target).is('textarea')) {
return;
}
], function (_, $, vent, Backbone, SeriesCollection) {
if (e.ctrlKey || e.metaKey || e.altKey) {
return;
}
if (e.keyCode === 84) {
$('.x-series-search').focus();
e.preventDefault();
}
vent.on(vent.Hotkeys.NavbarSearch, function () {
$('.x-series-search').focus();
});
$.fn.bindSearch = function () {