mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 14:20:21 +02:00
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:
parent
58aeeace3a
commit
5c5bd65faa
@ -2461,8 +2461,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
|
|
||||||
if (Msg=WM_CHAR) and (WParam=VK_RETURN) and
|
if (Msg=WM_CHAR) and (WParam=VK_RETURN) and
|
||||||
((lWinControl is TCustomEdit) or (lWinControl is TCustomCombobox))
|
((lWinControl is TCustomCombobox) or
|
||||||
// and not TCustomEdit(lWinControl).WindowsSpecificOptionToEnableBeep
|
((lWinControl is TCustomEdit) and not (lWinControl is TCustomMemo ))
|
||||||
|
)
|
||||||
then
|
then
|
||||||
// this thing will beep, don't call defaultWindowProc
|
// this thing will beep, don't call defaultWindowProc
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user