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
feat: select suggestion on enter key for autocomplete
liyasthomas827a95515d77
diff --git a/components/smart/AutoComplete.vue b/components/smart/AutoComplete.vueindex 402128a2f..c495247ce 100644--- a/components/smart/AutoComplete.vue+++ b/components/smart/AutoComplete.vue@@ -150,6 +150,16 @@ export default defineComponent({handleKeystroke(event) {switch (event.code) {+ case "Enter":+ event.preventDefault()+ if (this.currentSuggestionIndex > -1)+ this.forceSuggestion(+ this.suggestions.find(+ (_item, index) => index === this.currentSuggestionIndex+ )+ )+ break+case "ArrowUp":event.preventDefault()this.currentSuggestionIndex =