baidu / baidu/amis

button 配一个 enter 的快捷键,form表单没配置api,光标停留在input-text输入框中,按enter无效,光标停留在input-text输入框外面,按enter有效

Open
#4,202 1 comment 0 reactions 0 assignees View on GitHub
need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

button 配一个 enter 的快捷键,form表单没配置api,光标停留在input-text输入框中,按enter无效,光标停留在input-text输入框外面,按enter有效

#### 截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
`sdk`

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
1.9.0

3. 粘贴有问题的完整 `amis schema` 代码:
```
{
"type": "page",
"body": [
{
"type": "form",
"title": "表单",
"body": [
{
"label": "文本框",
"type": "input-text",
"name": "text"
}
],
"actions": [
{
"type": "button",
"label": "使用 enter 来弹框",
"actionType": "dialog",
"hotKey": "enter",
"dialog": {
"title": "弹框",
"body": "这是个简单的弹框。${text}"
}
}
]
}
]
}
```

5. 操作步骤
请简单描述一下复现的操作步骤...

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the provided AMIS SDK schema with the form, input-text field, and button using the Enter hotKey. Start by tracing how keyboard focus is handled for the input and button action, then verify that pressing Enter while the input is focused opens the dialog as it does when focus is outside the input.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.