How to list all controls which can receive focus, respond to hotkeys and mouse clicks on a visible form in Delphi and FreePascal?

153 views Asked by At

I am looking for a feature where I can use the keyboard to navigate to or activate any actionable control on a form in one shot.

For those not acquainted with ace-jump in Emacs, or browser addons like Tridactyl, Vimium and Surfing Keys, you press a hotkey and all clickable or reachable items are overlaid with key pairs that enable you click a link or jump to an edit control.

browser counterpart

1

There are 1 answers

0
AmigoJack On

In Windows such a feature has been called accelerator key in the past:

Accelerator keys enable the user to access a menu command from the keyboard by pressing Alt+ the appropriate letter, indicated in your code by the preceding ampersand. The letter after the ampersand appears underlined in the menu.

To specify an accelerator, add an ampersand in front of the appropriate letter. For example, to add a Save menu command with the S as an accelerator key, type &Save. Keyboard shortcuts enable the user to perform the action without using the menu directly, by typing in the shortcut key combination.

Nowadays Windows itself and web browsers call them access keys:

An access key is a combination of the Alt key and one or more alphanumeric keys—sometimes called a mnemonic—typically pressed sequentially, rather than simultaneously.