mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 00:11:51 +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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user