fix(confirm): make Cancel the default button of the confirmation dialog

The confirming button was the default, so one stray Enter deleted a card,
a column with all its cards or a tag, or discarded an edit. Enter now
answers with Cancel; the action needs an explicit click.
This commit is contained in:
doyaGu committed 2026-10-03 22:46:42 -04:00
1 parent 253847323a
commit 8714eec6ca
3 files changed
+6 -4

No files matched your search

+1
View File
@@ -64,6 +64,7 @@
- [ ] 新建列、编辑列(标题 + 描述);空标题、重名(含仅大小写不同,如 `Done` / `done`)→ 模态内提示错误,模态不关、输入保留
- [ ] 删除列:确认框提示将删除 N 张卡片;确认后列与卡片一并删除
- [ ] 各类确认框(删除卡片 / 列 / 标签、丢弃编辑)弹出后直接按回车 → 等同取消,不执行删除或丢弃
- [ ] 新建卡片、点击卡片编辑:标题可空;内容多行;`#id` / 创建时间 / 修改时间只读显示(新建时不显示)
- [ ] 新建卡片什么都不填(标题、内容、标签均空)直接确认:不产生卡片;只加一个标签再确认:产生无标题卡片
- [ ] 编辑确认但内容未变 → 修改时间不变;改动后确认 → 修改时间刷新