Jump to content

How to make hot ket Ctrl + S & ctrl + P for my button


donlego

Recommended Posts

22 minutes ago, donlego said:

pres ctrl+S trigering browser save

Hello,

Please see this demo:

\FMSoft\Framework\uniGUI\Demos\Desktop\MonitoredKeys

1. MainForm.MonitoredKeys.Keys -> add this:

ctrlS.png.85eddb40b0e3f461a3ce4c9ff30ffff6.png

2. MainForm -> OnKeyDown event:

procedure TMainForm.UniFormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  case Key of
    83 : // 's'
      if ssCtrl in Shift then
        UniButton1.Click;
  end;
end;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...