Skip to content

Commit 04d504a

Browse files
committed
feat(ui): auto-complete support Shift + Enter
1 parent 5b4f3c4 commit 04d504a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/components/auto-complete/AutoComplete.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function AutoComplete<T extends DAutoCompleteItem>(
231231
onKeyDown: (e) => {
232232
el.props.onKeyDown?.(e);
233233

234-
if (e.code === 'Enter' && visible && focusItem) {
234+
if (e.code === 'Enter' && !e.shiftKey && visible && focusItem) {
235235
changeVisible(false);
236236
onItemClick?.(focusItem.value, focusItem);
237237
}

0 commit comments

Comments
 (0)