Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Map DELETE method `Alt + X`
Liyas Thomas82da7d0b242f
diff --git a/components/layout/pw-header.vue b/components/layout/pw-header.vueindex a707023ed..bd4d5aefe 100644--- a/components/layout/pw-header.vue+++ b/components/layout/pw-header.vue@@ -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>diff --git a/pages/index.vue b/pages/index.vueindex 0d71340ac..a4010fd7e 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -2718,19 +2718,19 @@ export default {this.showModal = this.showTokenList = this.showTokenRequestList = this.showRequestModal = falsethis.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) {