procedure TfmQAB.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
if (Msg.CharCode = 116)  and (HiWord(GetKeyState(VK_CONTROL)) = 1)  then 
  begin
    ......
  end
end;
【參考連結】
- Catch SHIFT key during menu item selection? – Delphi Tips – CJC Delphi (Cool Delphi Tips)
 - GetKeyState:GetKeyState ,該函式檢取指定虛擬鍵的 -百科知識中文網
 - DELPHI OnKeyDown,OnKeyPress,OnKeyUp区别_踏雪无痕的博客-CSDN博客_delphi onkeydown
 - delphi key值表 – 台部落
 - How to detect ctrl-t keypress in Delphi – Stack Overflow
 - 鍵盤鍵碼值對照表
 
	







發佈留言