Map DELETE method Alt + X

This commit is contained in:
Liyas Thomas
2020-08-23 11:16:25 +05:30
parent 4dd522eda4
commit 82da7d0b24
2 changed files with 6 additions and 6 deletions

View File

@@ -239,7 +239,7 @@
<label>{{ $t("select_put_method") }}</label>
</div>
<div>
<kbd>Alt</kbd>+<kbd>D</kbd>
<kbd>Alt</kbd>+<kbd>X</kbd>
<label>{{ $t("select_delete_method") }}</label>
</div>
</div>

View File

@@ -2718,19 +2718,19 @@ export default {
this.showModal = this.showTokenList = this.showTokenRequestList = this.showRequestModal = false
this.isHidden = true
}
if (e.key === "G" && e.altKey) {
if ((e.key === "g" || e.key === "G") && e.altKey) {
this.method = "GET"
}
if (e.key === "H" && e.altKey) {
if ((e.key === "h" || e.key === "H") && e.altKey) {
this.method = "HEAD"
}
if (e.key === "P" && e.altKey) {
if ((e.key === "p" || e.key === "P") && e.altKey) {
this.method = "POST"
}
if (e.key === "U" && e.altKey) {
if ((e.key === "u" || e.key === "U") && e.altKey) {
this.method = "PUT"
}
if (e.key === "D" && e.altKey) {
if ((e.key === "x" || e.key === "x") && e.altKey) {
this.method = "DELETE"
}
if (e.key == "ArrowUp" && e.altKey && this.currentMethodIndex > 0) {