Remove keybindings in ACP as nobody uses them anymore.

If you do, let me know, heh.
v1.18.x
Julian Lam 7 years ago
parent ac2e185e34
commit 73d3157635

@ -31,8 +31,6 @@
} }
$(document).ready(function () { $(document).ready(function () {
setupKeybindings();
if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { if (!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
require(['admin/modules/search'], function (search) { require(['admin/modules/search'], function (search) {
search.init(); search.init();
@ -63,24 +61,6 @@
}); });
} }
function setupKeybindings() {
require(['mousetrap', 'admin/modules/instance'], function (mousetrap, instance) {
mousetrap.bind('ctrl+shift+a r', function () {
instance.reload();
});
mousetrap.bind('ctrl+shift+a R', function () {
socket.emit('admin.restart');
});
mousetrap.bind('/', function () {
$('#acp-search input').focus();
return false;
});
});
}
function selectMenuItem(url) { function selectMenuItem(url) {
require(['translator'], function (translator) { require(['translator'], function (translator) {
url = url url = url

Loading…
Cancel
Save