# DN_HOTKEY

The DN_HOTKEY event is sent to the dialog callback function when the user presses a hotkey (`Alt`-`letter`).

### Param1

The ID of the dialog item that will receive the keyboard focus after the hotkey is processed.

### Param2

Internal FAR key code.

### Return

TRUE - allow the hot key to be processed
FALSE - cancel the hot key.

### Controls

Control | Description
--- | ---
DI_DOUBLEBOX | double line frame; if it has a hotkey (the DIF_SHOWAMPERSAND flag is not set) then the focus is transfered to the nearest control that can have keyboard focus.
DI_SINGLEBOX | single line frame; if it has a hotkey (the DIF_SHOWAMPERSAND flag is not set) then the focus is transfered to the nearest control that can have keyboard focus.
DI_TEXT | text label; if it has a hotkey (the DIF_SHOWAMPERSAND flag is not set) then the focus is transfered to the nearest control that can have keyboard focus.
DI_VTEXT | vertical text label; if it has a hotkey (the DIF_SHOWAMPERSAND flag is not set) then the focus is transfered to the nearest control that can have keyboard focus.
DI_BUTTON | Push Button; if the DIF_SHOWAMPERSAND flag is not set the element itself responds to the `Alt`-`Letter` combination.
DI_CHECKBOX | Check Box; if the DIF_SHOWAMPERSAND flag is not set the element itself responds to the `Alt`-`Letter` combination.
DI_RADIOBUTTON | Radio Button; if the DIF_SHOWAMPERSAND flag is not set the element itself responds to the `Alt`-`Letter` combination.

### Example

See also:
DialogEx