LCL, windows, fix 'After changes by commits 33328 and 33359 it becomes impossible to use Enter key in TMemo. Even TStrings property editor does not allow it' reported by Anton

git-svn-id: trunk@33482 -
This commit is contained in:
jesus 2011-11-12 09:08:48 +00:00
parent 58aeeace3a
commit 5c5bd65faa

View File

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