FAR_PKF_FLAGS

Far Manager

FAR_PKF_FLAGS

The members of the FAR_PKF_FLAGS enumeration describe the state of the shift keys of an event sent to the ProcessKey function.
FlagDescription
PKF_CONTROL Ctrl is pressed
PKF_ALT Alt is pressed
PKF_SHIFT Shift is pressed
PKF_PREPROCESS Preprocessing: - FAR passes a "raw" keystroke.
This flag is applicable only to the virtual key code (second parameter of the ProcessKey function).

Remarks

  • Since FAR Manager 1.70 build 2052 keyboard events are sent to the plugins with no exclusions (refer to the remarks on the ProcessKey function). If the PKF_PREPROCESS flag is set, plugin may ignore calls to the ProcessKey function. In this case after the input is complete FAR will form the needed command and pass it to the plugin.
    For example, if a user enters "cd ..Enter" in the command line the plugin receives the sequence "80043h 80044h 80020h 800BEh 800BEh 8000Dh" (every virtual code has the PKF_PREPROCESS flag set).
    The plugin may behave in two ways:
    1. process the sequence by itself;
    2. ignore the calls to ProcessKey with PKF_PREPROCESS set and wait for FAR to call SetDirectory with Dir = "..".
See also: