本文整理自网络,侵删。
在 keydown中是
if Key = VK_RETURN then
ShowMessage('回车');
在 keypress中是
if Key = #13 then
ShowMessage('回车');
相关阅读 >>
Delphi2010中字符串汇编需要注意的一点,以及支持2010的aes加密库
Delphi 从 twebbrowser中获得当前输入处的链接
Delphi 10.3 中安装程序自动升级插件autoupgrader_pro_v5.2
更多相关阅读请进入《Delphi》频道 >>