Skip to content

Commit 01ae5e9

Browse files
committed
Allow AutoComplete on Tab
1 parent 2375207 commit 01ae5e9

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/VueExcelEditor.vue

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,11 +1456,16 @@ export default defineComponent({
14561456
}
14571457
}
14581458
else {
1459-
if (!this.moveEast(e)) {
1460-
if (this.moveSouth(e))
1461-
this.moveToWest(e)
1462-
else
1463-
return this.inputBoxBlur()
1459+
if (this.autocompleteSelect !== -1 && this.autocompleteSelect < this.autocompleteInputs.length) {
1460+
this.inputAutocompleteText(this.autocompleteInputs[this.autocompleteSelect])
1461+
}
1462+
else {
1463+
if (!this.moveEast(e)) {
1464+
if (this.moveSouth(e))
1465+
this.moveToWest(e)
1466+
else
1467+
return this.inputBoxBlur()
1468+
}
14641469
}
14651470
}
14661471
e.preventDefault()

0 commit comments

Comments
 (0)