12 lines
322 B
JavaScript
12 lines
322 B
JavaScript
(function () {
|
|
document.addEventListener('keydown', function (e) {
|
|
if (!e.altKey || !e.shiftKey) return;
|
|
switch (e.key) {
|
|
case 'E':
|
|
e.preventDefault();
|
|
window.location.href = window.location.pathname + '?edit';
|
|
break;
|
|
}
|
|
});
|
|
})();
|