From 01ae5e9a7998c415183b5bf18dba6aaa60ef8681 Mon Sep 17 00:00:00 2001 From: Alan Snedeker Date: Sun, 7 Jan 2024 21:54:01 -0600 Subject: [PATCH] Allow AutoComplete on Tab --- src/VueExcelEditor.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/VueExcelEditor.vue b/src/VueExcelEditor.vue index 859a72c..e38c04a 100644 --- a/src/VueExcelEditor.vue +++ b/src/VueExcelEditor.vue @@ -1456,11 +1456,16 @@ export default defineComponent({ } } else { - if (!this.moveEast(e)) { - if (this.moveSouth(e)) - this.moveToWest(e) - else - return this.inputBoxBlur() + if (this.autocompleteSelect !== -1 && this.autocompleteSelect < this.autocompleteInputs.length) { + this.inputAutocompleteText(this.autocompleteInputs[this.autocompleteSelect]) + } + else { + if (!this.moveEast(e)) { + if (this.moveSouth(e)) + this.moveToWest(e) + else + return this.inputBoxBlur() + } } } e.preventDefault()