File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ element in the DOM and the key you want to fire.
67
67
fireEvent .keyDown (domNode, { key: ' Enter' , code: 13 })
68
68
69
69
// note: you should set the charCode or it will be fallback to 0
70
- // will Fire an KeyboardEvent with charCode = 0
70
+ // will fire a KeyboardEvent with charCode = 13
71
71
fireEvent .keyDown (domNode, { key: ' Enter' , code: 13 })
72
72
73
73
// If using event.which, be sure to set the keyCode or it will be fallback to 0
74
- // will Fire a KeyboardEvent with expected which = 13
74
+ // will fire a KeyboardEvent with expected which = 13
75
75
fireEvent .keyDown (domNode, { key: ' Enter' , keyCode: 13 })
76
76
77
- // will Fire an KeyboardEvent with charCode = 65
77
+ // will fire a KeyboardEvent with charCode = 65
78
78
fireEvent .keyDown (domNode, { key: ' A' , code: 65 , charCode: 65 })
79
79
```
80
80
You can’t perform that action at this time.
0 commit comments