I use the TApplicationEvents OnShortCut event to get short keyboard shortcuts for an application in a Delphi program.
Using the following code:
procedure TForm1.ApplicationEvents1ShortCut(var Msg: TWMKey; var Handled: Boolean) ; begin if (Msg.CharCode = VK_F9) then begin ShowMessage('F9 pressed!') ; Handled := True; end; end;
Question:
How to determine when the ALT C button is pressed?
source share