From 84833390051de7262056df5cd35b8a1b71d3409a Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 19 Feb 2024 10:47:14 +0530 Subject: [PATCH] feat: add keypress actions --- .../src/components/new-collections/rest/Collection.vue | 2 ++ .../src/components/new-collections/rest/Request.vue | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue b/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue index 355b6763d..149efed62 100644 --- a/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue +++ b/packages/hoppscotch-common/src/components/new-collections/rest/Collection.vue @@ -64,6 +64,7 @@ @keyup.e="edit?.$el.click()" @keyup.delete="deleteAction?.$el.click()" @keyup.x="exportAction?.$el.click()" + @keyup.p="propertiesAction?.$el.click()" @keyup.escape="hide()" > (null) const edit = ref(null) const deleteAction = ref(null) const exportAction = ref(null) +const propertiesAction = ref(null) const options = ref(null) const collectionIcon = computed(() => { diff --git a/packages/hoppscotch-common/src/components/new-collections/rest/Request.vue b/packages/hoppscotch-common/src/components/new-collections/rest/Request.vue index f0c4db066..53a9f5c99 100644 --- a/packages/hoppscotch-common/src/components/new-collections/rest/Request.vue +++ b/packages/hoppscotch-common/src/components/new-collections/rest/Request.vue @@ -74,6 +74,7 @@ @keyup.e="edit?.$el.click()" @keyup.d="duplicate?.$el.click()" @keyup.delete="deleteAction?.$el.click()" + @keyup.s="shareAction?.$el.click()" @keyup.escape="hide()" > () const tippyActions = ref(null) +const edit = ref(null) +const deleteAction = ref(null) const options = ref(null) +const duplicate = ref(null) +const shareAction = ref(null) const requestLabelColor = computed(() => getMethodLabelColorClassOf(props.requestView.request)