mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 08:09:34 +02:00
LCL: wince: cosmetic + small optimization align code to Win32 implementation. Bug #30117
git-svn-id: trunk@59338 -
This commit is contained in:
parent
9e965ff417
commit
0905048337
@ -942,15 +942,16 @@ Var
|
||||
OldUTF8Char, UTF8Char: TUTF8Char;
|
||||
WS: WideString;
|
||||
begin
|
||||
Result := false;
|
||||
Result := False;
|
||||
UTF8Char := UTF16ToUTF8(widestring(WideChar(AChar)));
|
||||
OldUTF8Char := UTF8Char;
|
||||
if Assigned(lWinControl) then
|
||||
begin
|
||||
// if somewhere key is changed to '' then don't process this message
|
||||
Result := lWinControl.IntfUTF8KeyPress(UTF8Char, 1, False);
|
||||
// if somewhere key is changed then don't perform a regular keypress
|
||||
Result := Result or (UTF8Char <> OldUTF8Char);
|
||||
if OldUTF8Char <> UTF8Char then
|
||||
if Result then
|
||||
begin
|
||||
WS := UTF8ToUTF16(UTF8Char);
|
||||
if Length(WS) > 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user