LCL, win, prevent combobox from beeping too, issue #16620

git-svn-id: trunk@33359 -
This commit is contained in:
jesus 2011-11-05 23:24:27 +00:00
parent 11adf3e5b4
commit 626cc62f6d

View File

@ -2460,7 +2460,8 @@ begin
if WinProcess then
begin
if (Msg=WM_CHAR) and (WParam=VK_RETURN) and (lWinControl is TCustomEdit)
if (Msg=WM_CHAR) and (WParam=VK_RETURN) and
((lWinControl is TCustomEdit) or (lWinControl is TCustomCombobox))
// and not TCustomEdit(lWinControl).WindowsSpecificOptionToEnableBeep
then
// this thing will beep, don't call defaultWindowProc