procedure TformMain.FormKeyUp(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (Key = VK_ADD) and (Shift = [ssCtrl]) then
begin
ShowMessage('Zoom In');
end;
end;
I am trying to zoom in and out with keyboard (ctrl++ and ctrl+-)
I wrote my code like this: How to detect ctrl-t keypress in Delphi
But it does not work, how can I fix it?