mirror of https://github.com/Radarr/Radarr
Better handling of ? for hotkey legend
This commit is contained in:
parent
b5607b79bc
commit
9ecbf8773e
|
@ -6,16 +6,20 @@ define(
|
||||||
'vent',
|
'vent',
|
||||||
'Hotkeys/HotkeysView'
|
'Hotkeys/HotkeysView'
|
||||||
], function ($, vent, HotkeysView) {
|
], function ($, vent, HotkeysView) {
|
||||||
$(document).on('keydown', function (e) {
|
|
||||||
if (e.ctrlKey && e.keyCode === 83) {
|
$(document).on('keypress', function (e) {
|
||||||
vent.trigger(vent.Hotkeys.SaveSettings);
|
if ($(e.target).is('input') || $(e.target).is('textarea')) {
|
||||||
e.preventDefault();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (e.shiftKey && e.keyCode === 191) {
|
if (e.charCode === 63) {
|
||||||
vent.trigger(vent.Commands.OpenModalCommand, new HotkeysView());
|
vent.trigger(vent.Commands.OpenModalCommand, new HotkeysView());
|
||||||
// vent.trigger(vent.Hotkeys.ShowHotkeys);
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('keydown', function (e) {
|
||||||
|
if (e.ctrlKey && e.keyCode === 83) {
|
||||||
|
vent.trigger(vent.Hotkeys.SaveSettings);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue