chore: 更新所有包的版本号至0.0.13
- 为评论表单和回复编辑器中的文本输入框添加键盘事件处理 - 允许通过键盘快捷键(如Ctrl+Enter)提交表单
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cwd-admin",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cwd-api",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"scripts": {
|
||||
"deploy": "wrangler deploy",
|
||||
"dev": "wrangler dev",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cwd-widget",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"description": "Server-free, extremely fast and secure, plug-and-play commenting system based on Cloudflare Workers and the Global Edge Network.",
|
||||
"type": "module",
|
||||
"author": "anghunk",
|
||||
|
||||
@@ -304,6 +304,7 @@ export class CommentForm extends Component {
|
||||
onBlur: (e) => {
|
||||
if (fieldName === 'email') this.handleEmailBlur(e.target.value);
|
||||
},
|
||||
onKeydown: (e) => this.handleContentKeydown(e),
|
||||
},
|
||||
}),
|
||||
...(error ? [this.createTextElement('span', error, 'cwd-error-text')] : []),
|
||||
|
||||
@@ -301,7 +301,8 @@ export class ReplyEditor extends Component {
|
||||
placeholder,
|
||||
value: value || '',
|
||||
disabled: this.props.submitting,
|
||||
onInput: (e) => this.handleUserInfoChange(field, e.target.value)
|
||||
onInput: (e) => this.handleUserInfoChange(field, e.target.value),
|
||||
onKeydown: (e) => this.handleTextareaKeydown(e)
|
||||
}
|
||||
})
|
||||
]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cwd",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"license": "Apache-2.0",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user