feat(input): 输入框右键菜单(剪切/复制/粘贴/全选)
QML 默认 TextField / TextArea 不带右键菜单(只能 Ctrl+V/C/X),跟旧 QWidget
版的体验差。补:
ThemedTextField (复用组件,覆盖登录用户名 + 款式词库添加输入):
TapHandler acceptedButtons:RightButton 弹 Menu,4 项:
剪切 / 复制 / 粘贴 / 全选
密码框 (echoMode === TextInput.Password) 时 剪切 / 复制 disabled,
防泄漏;粘贴 / 全选 仍可用(密码管理器粘贴常用)
ImageGenTab.qml promptArea (TextArea):
同样的 Menu + TapHandler,因为 promptArea 不通过 ThemedTextField 走
注:HistoryTab 详情 prompt 只读区已有 "
复制" 按钮覆盖复制需求;
StyleDesignerTab 的 Prompt 预览同样只读,旁边有字数显示,先不改。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Showing
2 changed files
with
70 additions
and
0 deletions
-
Please register or sign in to post a comment