cocoa: reporting extended UTF8 character as a question mark for ansi char

git-svn-id: trunk@59628 -
This commit is contained in:
dmitry 2018-11-22 21:55:54 +00:00
parent 7382f53434
commit 4e9ce8dfeb

View File

@ -894,14 +894,14 @@ begin
if Length(UTF8Character) > 0 then
begin
SendChar := True;
if Utf8Character[1] <= #127 then
if Length(UTF8Character)=1 then
// ANSI layout character
KeyChar := Utf8Character[1]
else
// it's non ANSI character. KeyChar must be assinged anything but #0
// otherise the message could be surpressed.
// In Windows world this would be an "Ansi" char in current locale
KeyChar := #$FF;
KeyChar := '?';
end;
end;