customdrawn: Fixes the utf8 chars filter

git-svn-id: trunk@33545 -
This commit is contained in:
sekelsenmat 2011-11-15 15:40:56 +00:00
parent 89cfff37ee
commit 8682e5b283

View File

@ -1175,7 +1175,8 @@ begin
// LCL-Carbon sends Backspace as a UTF-8 Char
// LCL-Qt sends arrow left,right,up,down (#28..#31), <enter>, ESC, etc
// Don't handle any non-char keys here because they are already handled in KeyDown
if UTF8Key[1] in [#0..#$1F,#$7F..#$9F] then Exit;
if (UTF8Key[1] in [#0..#$1F,#$7F]) or
((UTF8Key[1]=#$c2) and (UTF8Key[2] in [#$80..#$9F])) then Exit;
DoDeleteSelection;