![]() Ctrl+B, Ctrl+I and ESC work only on the scope of the send email formĬontext menu actions affect only specific areas or elements, such as the selected characters in a text editor or a song in a playlist.Some accelerators work only in specific scopes while others work app-wide.įor example, Microsoft Outlook includes the following accelerators: However, Gamepad virtual keys are not supported. Single key (A, Delete, F2, Spacebar, Esc, Multimedia Key) accelerators and multi-key accelerators (Ctrl+Shift+M) are supported. If Modifiers is not set, the default value is None. Modifiers – the VirtualKeyModifiers used for the keyboard accelerator. Key - the VirtualKey used for the keyboard accelerator. The UIElement object has a KeyboardAccelerator collection, KeyboardAccelerators, where you specify your custom KeyboardAccelerator objects and define the keystrokes for the keyboard accelerator: Keyboard accelerator described in a tooltip In this example, we declare keyboard accelerators only for the Rename and Copy commands. We recommend that you set keyboard accelerators for the most common actions in your app and document them using the menu item label or tooltip. With these APIs, you don't have to handle multiple KeyDown events to detect the key combination pressed, and you can localize accelerators in the app resources. Use the KeyboardAccelerator APIs to create keyboard accelerators in Windows apps. For these users, efficiency and consistency are crucial comprehensiveness is important only for the most frequently used commands. Keyboard accelerators make your app more usable for power users who prefer to interact through the keyboard.Įxperienced users often have a strong preference for using the keyboard because keyboard-based commands can be entered more quickly and don't require them to remove their hands from the keyboard. For these users, comprehensive command coverage is crucial. Such users might not be able to operate a mouse and instead rely on various assistive technologies such as keyboard enhancement tools, on-screen keyboards, screen enlargers, screen readers, and voice input utilities. ![]() It enables users with vision impairments or who have certain motor disabilities to navigate an app and interact with its features. Keyboard accelerators make your app more accessible for users with motor disabilities, including those users who can press only one key at a time or have difficulty using a mouse.Ī well-designed keyboard UI is an important aspect of software accessibility. We recommend that you specify keyboard accelerators wherever appropriate in your UI, and support accelerators in all custom controls. ![]() Keyboard accelerators described in a menu item label When to use keyboard accelerators However, because users rely on an application's menus to discover and learn the available command set, you should try to make discovery of accelerators as easy as possible (using labels or established patterns can help with this).Īn accelerator auto-repeats (for example, when the user presses Ctrl+Shift and then holds down M, the accelerator is invoked repeatedly until M is released). Keyboard accelerators are not available for every action but are often associated with commands exposed in menus (and should be specified with the menu item content). Accelerators can also be associated with actions that do not have equivalent menu items. Accelerators defined by you using the keyboard accelerator APIs discussed here are referred to as app accelerators. These built-in keyboard accelerators are referred to as control accelerators and are executed only if the focus is on the element or one of its children. For example, ListView supports Ctrl+A for selecting all the items in the list, and RichEditBox supports Ctrl+Tab for inserting a Tab in the text box. Many XAML controls have built-in keyboard accelerators. For example, if a user presses Ctrl+Shift+M, the framework checks the modifiers (Ctrl and Shift) and fires the accelerator, if it exists. Accelerators typically include the function keys F1 through F12 or some combination of a standard key paired with one or more modifier keys (CTRL, Shift).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |