mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-13 13:19:39 +01:00
LCL, check for modified charcode after keypress, issue #11793
git-svn-id: trunk@16091 -
This commit is contained in:
parent
c2bc66238c
commit
b53d0aeba0
@ -249,6 +249,7 @@ var
|
|||||||
NMHdr: PNMHdr absolute LParam; // used by WM_NOTIFY
|
NMHdr: PNMHdr absolute LParam; // used by WM_NOTIFY
|
||||||
TmpSize: TSize; // used by WM_MEASUREITEM
|
TmpSize: TSize; // used by WM_MEASUREITEM
|
||||||
Info: TComboboxInfo;
|
Info: TComboboxInfo;
|
||||||
|
OrgCharCode: word; // used in WM_CHAR handling
|
||||||
|
|
||||||
function ShowHideTabPage(NotebookHandle: HWnd; Showing: boolean): integer;
|
function ShowHideTabPage(NotebookHandle: HWnd; Showing: boolean): integer;
|
||||||
var
|
var
|
||||||
@ -1255,6 +1256,7 @@ begin
|
|||||||
CharCode := Word(Char(WideChar(WParam)))
|
CharCode := Word(Char(WideChar(WParam)))
|
||||||
else
|
else
|
||||||
CharCode := Word(WParam);
|
CharCode := Word(WParam);
|
||||||
|
OrgCharCode := CharCode;
|
||||||
Result := 0;
|
Result := 0;
|
||||||
Assert(False,Format('WM_CHAR KeyData= %d CharCode= %d ',[KeyData,CharCode]));
|
Assert(False,Format('WM_CHAR KeyData= %d CharCode= %d ',[KeyData,CharCode]));
|
||||||
end;
|
end;
|
||||||
@ -2403,7 +2405,7 @@ begin
|
|||||||
// if charcode was modified by LCL, convert ansi char
|
// if charcode was modified by LCL, convert ansi char
|
||||||
// to unicode char, if not change was made WParam has
|
// to unicode char, if not change was made WParam has
|
||||||
// the right unicode char so just use it.
|
// the right unicode char so just use it.
|
||||||
if (LMChar.Result=1) then
|
if (LMChar.Result=1) or (OrgCharCode<>LMChar.CharCode) then
|
||||||
WParam := Word(WideChar(Char(LMChar.CharCode)));
|
WParam := Word(WideChar(Char(LMChar.CharCode)));
|
||||||
end else
|
end else
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user