mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-12 21:00:39 +01:00
Win32 fix: Closing file with CTRL-F4 on form designer caused access violation. Patch from Ludo Brands, issue #19294
git-svn-id: trunk@30575 -
This commit is contained in:
parent
febce422a7
commit
fb63887235
@ -2495,7 +2495,7 @@ begin
|
|||||||
// we cannot tell for sure windows didn't want the key
|
// we cannot tell for sure windows didn't want the key
|
||||||
// for WM_CHAR check WM_GETDLGCODE/DLGC_WANTCHARS
|
// for WM_CHAR check WM_GETDLGCODE/DLGC_WANTCHARS
|
||||||
// winapi too inconsistent about return value
|
// winapi too inconsistent about return value
|
||||||
if (lWinControl <> nil) and (PLMsg^.Result = 0) then
|
if (lWinControl <> nil) and (PLMsg^.Result = 0) and (LMKey.CharCode<>0) then
|
||||||
DeliverMessage(lWinControl, PLMsg^);
|
DeliverMessage(lWinControl, PLMsg^);
|
||||||
|
|
||||||
// handle Ctrl-A for edit controls
|
// handle Ctrl-A for edit controls
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user