ProcessKey

The ProcessKey function allows to override standard control keys processing in a plugin panel.
int WINAPI ProcessKey(
  HANDLE hPlugin,
  int Key,
  unsigned int ControlState
);

Parameters

hPlugin
Plugin handle returned by OpenPlugin or OpenFilePlugin.
Key
Virtual key code.
Key may have the PKF_PREPROCESS flag set.
ControlState
Indicates control keys state. One or more flags from the FAR_PKF_FLAGS enum (except PKF_PREPROCESS).
For example, when Shift-F7 is pressed, Key is equal to VK_F7 and ControlState is equal to PKF_SHIFT.

Return value

Return FALSE to use standard FAR key processing. If the plugin processes the key combination by itself, it should return TRUE

Remarks