I want to detect that a user pressed COMMAND-S on the keyboard on MacOS in the KeyDown event of a TMSFNCMemo.
There are several problems:
- ShiftState does not include ssCommand
- Shiftstate is not initialized when it should be empty
- KeyChar is not always initialized
Please add handling event.metaKey in the Javascript part of TMSFNCMemo and initialize all local variables (c and s) in DoMemoKeyDown that are used in calling OnKeyDown. The same applies for the KeyUp-event.