Standard Accelerator Keys
应用程序总是需要定义快捷键. Qt 完全支持快捷键, 例如 QShortcut. 按键绑定的平台默认值也可以使用 QKeySequence::StandardKey 分配.
下面是 Microsoft 对快捷键的建议, 及对 Open Group 的建议存在和不同之处的评论. 对于多数快捷键, Open Group 要么没有建议, 要么同意 Microsoft 的观点.
Alt + 加粗字母是 Microsoft 推荐的方式, 我们建议支持. 如, 对于 Apply 按钮, 我们建议使用 QAbstractButton::setText(tr("&Apply"));
如果你有冲突的按钮 (如. About 和 Apply 按钮), 你必须自行决定.
- About
- Always on Top
- Apply
- Back
- Browse
- Close (CDE: Alt+F4; Alt+F4 is "close window" in Windows)
- Copy (CDE: Ctrl+C, Ctrl+Insert)
- Copy Here
- Create Shortcut
- Create Shortcut Here
- Cut
- Delete
- Edit
- Exit (CDE: Exit)
- Explore
- File
- Find
- Help
- Help Topics
- Hide
- Insert
- Insert Object
- Link Here
- Maximize
- Minimize
- Move
- Move Here
- New
- Next
- No
- Open
- Open With
- Page Setup
- Paste
- Paste Link
- Paste Shortcut
- Paste Special
- Pause
- Play
- Print Here
- Properties
- Quick View
- Redo (CDE: Ctrl+Y, Shift+Alt+Backspace)
- Repeat
- Restore
- Resume
- Retry
- Run
- Save
- Save As
- Select All
- Send To
- Show
- Size
- Split
- Stop
- Undo (CDE: Ctrl+Z or Alt+Backspace)
- View
- What's This?
- Window
- Yes
还有许多其他键和操作 (使用除 Alt 之外的其他修饰键). 详见 Microsoft 和 Open Group 文档.
Microsoft 书籍 的 ISBN 是 0735605661. Open Group 的书籍很难找到, 而且价格昂贵, 不推荐. 但是如果你确实需要, 可以联系它们的邮箱 [email protected], 寻求帮助. 询问 ISBN 是 1859121047 的书籍.