Refactor: EditableTextView.Changed() and the Canceled spelling

EditableTextView.Changed is a method like every other result's.
AlertDialogResult, PopconfirmResult and DateTimeResult spell Canceled
the American way, matching EditableTextView and LoadingOverlayResult.
Callers, Gallery and docs updated.
This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 13:50:02 -04:00
1 parent 5d395ad789
commit c0be05d043
22 files changed
+306 -72

No files matched your search

+2 -2
View File
@@ -37,7 +37,7 @@ ui.Render(view, 400, 300, 1)
| `CancelLabel` | `string` | 内置“取消 / Cancel” | 取消按钮文字。 |
| `ConfirmText` | `string` | `""` | 非空时显示输入框,输入内容与之完全相同后确认按钮才可用。 |
`AlertDialogResult{Confirmed, Cancelled bool}` 只在发生选择的那一帧为 true,之后对话框关闭。
`AlertDialogResult{Confirmed, Canceled bool}` 只在发生选择的那一帧为 true,之后对话框关闭。
## 状态
@@ -47,7 +47,7 @@ ui.Render(view, 400, 300, 1)
## 事件
- `Confirmed`:点击确认,或焦点在已解锁的确认按钮上按 Enter / Space。
- `Cancelled`:点击取消、在取消上按 Enter / Space、或按 Escape。
- `Canceled`:点击取消、在取消上按 Enter / Space、或按 Escape。
- 点击遮罩不产生事件。
## 键盘操作