Add keyboard shortcuts
This commit is contained in:
11
assets/global-shortcuts.js
Normal file
11
assets/global-shortcuts.js
Normal file
@@ -0,0 +1,11 @@
|
||||
(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;
|
||||
}
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user