Is it not possible to use the Pause/Break key in keyboard shortcuts?
I know I can respond to the Pause/Break key, e.g.
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_PAUSE then
ShowMessage('VK_PAUSE pressed');
end;
However, I am unable to respond to the Pause/Break key using the TShortCut properties, e.g. in menu items and action lists. The Object Inspector lets me enter PAUSE
, Shift+PAUSE
, Ctrl+PAUSE
, Alt+PAUSE
, Shift+Ctrl+PAUSE
etc. so it clearly recognizes the PAUSE
key. But when I run the application, the menu item/action is not triggered on the specified shortcut. Is there a known workaround?