Skip to content

Commit aa8a0ab

Browse files
committed
fix(common): wizard ignore enter event with shift or ctrl
1 parent f7ac46b commit aa8a0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/wizard/enter-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import selectNext from './select-next';
22

33
const enterHandler = (e, formOptions, activeStep, findCurrentStep, handleNext, handleSubmit) => {
4-
if (e.key === 'Enter') {
4+
if (e.key === 'Enter' && !e.shiftKey && !e.ctrlKey) {
55
const isNotButton = e.target.type !== 'button';
66

77
if (isNotButton) {

0 commit comments

Comments
 (0)