From d6cc7bf7892a3e9b18f7569549535598b146632c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20K=C3=B6nig?= Date: Thu, 11 Jan 2024 19:20:12 +0100 Subject: [PATCH] fix #190 --- CHANGELOG.md | 5 ++++- src/composables/components/rest/RestQueryForm.ts | 2 +- src/composables/components/search/SearchDocuments.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3c928b2..0fe85563 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,13 @@ ## 1.0.3 -* dont automatically open autocomplete, press `ctrl+space` to open, fixes [#189][i189] +* don't automatically open autocomplete, press `Ctrl+Space` to open, fixes [#189][i189] +* send search query with `Ctrl+Enter` when editing query, fixes [#190][i190] [i189]: https://github.com/cars10/elasticvue/issues/189 +[i190]: https://github.com/cars10/elasticvue/issues/190 + ## 1.0.2 * fixes issue with old versions of elasticsearch that do not provide a uuid, fixes [#182][i182] diff --git a/src/composables/components/rest/RestQueryForm.ts b/src/composables/components/rest/RestQueryForm.ts index a58cbe67..9154c29f 100644 --- a/src/composables/components/rest/RestQueryForm.ts +++ b/src/composables/components/rest/RestQueryForm.ts @@ -128,7 +128,7 @@ export const useRestQueryForm = (props: RestQueryFormProps, emit: any) => { }) const editorCommands = [{ - key: 'Ctrl-Enter', mac: 'Cmd-Enter', run: () => { + key: 'Ctrl-Enter', run: () => { sendRequest() return true } diff --git a/src/composables/components/search/SearchDocuments.ts b/src/composables/components/search/SearchDocuments.ts index 86b6cb53..91a3087d 100644 --- a/src/composables/components/search/SearchDocuments.ts +++ b/src/composables/components/search/SearchDocuments.ts @@ -70,7 +70,7 @@ export const useSearchDocuments = () => { } const editorCommands = [{ - key: 'Alt-Enter', mac: 'Cmd-Enter', run: () => { + key: 'Ctrl-Enter', run: () => { search() return true }