Skip to content

Commit acbc50c

Browse files
committed
Allow AutoComplete on Tab
1 parent 7714284 commit acbc50c

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
@@ -1375,11 +1375,16 @@ export default defineComponent({
13751375
}
13761376
}
13771377
else {
1378-
if (!this.moveEast(e)) {
1379-
if (this.moveSouth(e))
1380-
this.moveToWest(e)
1381-
else
1382-
return this.inputBoxBlur()
1378+
if (this.autocompleteSelect !== -1 && this.autocompleteSelect < this.autocompleteInputs.length) {
1379+
this.inputAutocompleteText(this.autocompleteInputs[this.autocompleteSelect])
1380+
}
1381+
else {
1382+
if (!this.moveEast(e)) {
1383+
if (this.moveSouth(e))
1384+
this.moveToWest(e)
1385+
else
1386+
return this.inputBoxBlur()
1387+
}
13831388
}
13841389
}
13851390
e.preventDefault()

0 commit comments

Comments
 (0)