Skip to content

Commit 3c567d9

Browse files
committed
fix: Fix list handling issue in handleKeyDown. fixed #459
1 parent b198c76 commit 3c567d9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

core/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ Inherit custom color variables by adding [`.wmde-markdown-var`](https://github.c
741741

742742
```bash
743743
npm run watch # Listen create type and .tsx files.
744-
npm run css:watch # listen to the component compile and output the .css file
745744
npm run start # Preview code example.
746745
```
747746

core/src/components/TextArea/handleKeyDown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function handleKeyDown(
6868
return insertTextAtPosition(target, space);
6969
}
7070
} else if (
71-
e.code &&
71+
e.keyCode === 13 &&
7272
e.code.toLowerCase() === 'enter' &&
7373
(/^(-|\*)\s/.test(currentLineStr) || /^\d+.\s/.test(currentLineStr))
7474
) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"lint-staged": "~13.0.0",
3030
"prettier": "^2.7.1",
3131
"react-test-renderer": "~18.2.0",
32-
"tsbb": "~3.7.0"
32+
"tsbb": "~3.7.9"
3333
},
3434
"lint-staged": {
3535
"*.{js,jsx,less,md,json}": [

0 commit comments

Comments
 (0)