I have created a very simple VCL application. It's just a form with a TMemo on it. I've added the key up event on the TMemo.
procedure TForm1.Memo1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if (Key = Ord('X')) and (Shift * [ssCtrl, ssLeft] = [ssCtrl, ssLeft]) then
begin
ShowMessage('hi');
end;
end;
Even though I use the left CTRL key + X, it seems that the ssLeft can never be detected. Why does this happen?