Map DELETE method Alt + X
This commit is contained in:
@@ -239,7 +239,7 @@
|
|||||||
<label>{{ $t("select_put_method") }}</label>
|
<label>{{ $t("select_put_method") }}</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<kbd>Alt</kbd>+<kbd>D</kbd>
|
<kbd>Alt</kbd>+<kbd>X</kbd>
|
||||||
<label>{{ $t("select_delete_method") }}</label>
|
<label>{{ $t("select_delete_method") }}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2718,19 +2718,19 @@ export default {
|
|||||||
this.showModal = this.showTokenList = this.showTokenRequestList = this.showRequestModal = false
|
this.showModal = this.showTokenList = this.showTokenRequestList = this.showRequestModal = false
|
||||||
this.isHidden = true
|
this.isHidden = true
|
||||||
}
|
}
|
||||||
if (e.key === "G" && e.altKey) {
|
if ((e.key === "g" || e.key === "G") && e.altKey) {
|
||||||
this.method = "GET"
|
this.method = "GET"
|
||||||
}
|
}
|
||||||
if (e.key === "H" && e.altKey) {
|
if ((e.key === "h" || e.key === "H") && e.altKey) {
|
||||||
this.method = "HEAD"
|
this.method = "HEAD"
|
||||||
}
|
}
|
||||||
if (e.key === "P" && e.altKey) {
|
if ((e.key === "p" || e.key === "P") && e.altKey) {
|
||||||
this.method = "POST"
|
this.method = "POST"
|
||||||
}
|
}
|
||||||
if (e.key === "U" && e.altKey) {
|
if ((e.key === "u" || e.key === "U") && e.altKey) {
|
||||||
this.method = "PUT"
|
this.method = "PUT"
|
||||||
}
|
}
|
||||||
if (e.key === "D" && e.altKey) {
|
if ((e.key === "x" || e.key === "x") && e.altKey) {
|
||||||
this.method = "DELETE"
|
this.method = "DELETE"
|
||||||
}
|
}
|
||||||
if (e.key == "ArrowUp" && e.altKey && this.currentMethodIndex > 0) {
|
if (e.key == "ArrowUp" && e.altKey && this.currentMethodIndex > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user