加速键(热键)与快捷键的区别

https://msdn.microsoft.com/en-us/library/windows/desktop/bb226831(v=vs.85).aspx

https://msdn.microsoft.com/en-us/library/windows/desktop/bb246441(v=vs.85).aspx

加速键/热键一般是ALT+LETTER,一般是调出UI资源,提供用户进行下一步的点选操作;比如打开菜单一般是ALT+F;

快捷键不与UI操作相关,程序可以直接获得快捷键按下的结果,比如功能键F1-F12,一般是WM_CHAR消息。


Shortcut Keys -快捷键

Shortcut keys (sometimes erroneously referred to as accelerator keys or hot keys) are keys or key combinations that users can press for quick access to actions.

Shortcut keys differ from access keys. Access keys are assigned to every control so that the user can use the keyboard to move through the UI quickly. Shortcut keys allow the user to perform a common action without having to go through the UI, but they are not available for every command. Most access keys are associated with the modifier key ALT, and most shortcut keys are associated with the modifier key CTRL. CTRL+letter combinations and function keys (F1 through F12) are usually the best choices for shortcut keys.

Some keyboards also support three new keys: the Application key and the two Windows keys. The primary use for the Application key is to display the shortcut menu for the current selection (the same as pressing SHIFT+F10). You may also use it with modifier keys for program-specific functions. Pressing either of the Windows keys—left or right—displays the Start menu. These keys are also used by the system as modifiers for system-specific functions.




Access Keys -加速键或者热键

An access key is an alphanumeric key—sometimes called a hot key or mnemonic—that users can use instead of a pointing device to activate interactive controls. With a few standard exceptions, an access key correlates to a designated character in a control label. For example, to open the File menu, for which the access key is typically F, the user would press ALT+F. Access keys are associated only with controls that have text labels.

Access keys differ from shortcut keys. Whereas access keys are a comprehensive means of navigating the entire UI, shortcut keys are a quick means for experienced users to perform common actions. Most access keys are associated with ALT, and most shortcut keys are associated with CTRL.

Information about access keys for a specific type of control is in the topic dedicated to that control.

A user often has to press ALT in order to see access key designations. To ensure that you address them throughout the development process, set your computer to persistently display access keys.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值