:_

解决方案 »

  1.   

    在Caption里定义&S,&A表示ALT+S、ALT+A
      

  2.   

    form的keypreview设置为True
    procedure tform1.formkeydown(sender:tobject;var key:word;shift:Tshiftstate);
    begin  //ctrl+alt+q
      if (ssCtrl in Shift) and (ssAlt in Shift) and (key=ORD('Q')) then
         button1.onclick(nil);
    end;
      

  3.   

    form的keypreview设置为True
    procedure tform1.formkeydown(sender:tobject;var key:word;shift:Tshiftstate);
    begin  //ctrl+alt+q
      if (ssCtrl in Shift) and (ssAlt in Shift) and (key=ORD('Q')) then
         button1.onclick(nil);
    end;