# DM_KEY

Using the DM_KEY message a plugin sends a key codes array to the dialog manager.

### Param1

The number of passed keys.

### Param2

Pointer to an array (DWORD type) of internal FAR key codes.

### Return

0

### Remarks

The dialog manager will not receive the DN_KEY event in response to the DM_KEY message.

### Example

Example of sending the key input to the dialog (focus item):

    // add semicolon to the end of edit string
    DWORD Keys[2]={KEY_END,';'};

    Info.SendDlgMessage(hDlg,DM_KEY,sizeof(Keys)/sizeof(Keys[0]),(LONG_PTR)Keys);

See also:
DialogEx, DN_KEY