如何判断按下的是回车键?
AI摘要
在keydown事件中,判断回车键按下的条件是if Key = VK_RETURN then,在keypress事件中,判断回车键按下的条件是if Key = #13 then。
在 keydown中是
if Key = VK_RETURN then
ShowMessage('回车');
在 keypress中是
if Key = #13 then
ShowMessage('回车');
读者留言 0 条
一纸留言,便是山水间的一次相逢。
还没有留言,欢迎写下第一段交流。