We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9175bb0 commit f40f77eCopy full SHA for f40f77e
src/renderers/dom/shared/utils/getEventCharCode.js
@@ -37,10 +37,12 @@ function getEventCharCode(nativeEvent) {
37
charCode = keyCode;
38
}
39
40
- // Chrome, IE 11 and Edge report Enter as charCode 10 when ctrl is pressed.
+ // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
41
+ // report Enter as charCode 10 when ctrl is pressed.
42
if (charCode === 10) {
43
charCode = 13;
44
45
+
46
// Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
47
// Must not discard the (non-)printable Enter-key.
48
if (charCode >= 32 || charCode === 13) {
0 commit comments