More shortcuts

This commit is contained in:
Liyas Thomas
2019-11-14 17:43:45 +05:30
parent 009eae83a6
commit 40a8d45ab0
2 changed files with 14 additions and 8 deletions

View File

@@ -1947,6 +1947,10 @@ export default {
e.preventDefault();
this.saveRequest();
}
if (e.key === "k" && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
this.copyRequest();
}
};
document.addEventListener("keydown", this._keyListener.bind(this));
},