lcl: improve key handling in maskedit from Bart Broersma (#0011764)

git-svn-id: trunk@17914 -
This commit is contained in:
paul 2008-12-24 03:47:40 +00:00
parent 4e176f6df7
commit 07f5ba88b0

View File

@ -499,6 +499,12 @@ begin
Exit;
end;
// Number on numeric keyboard
if (Key >= VK_NUMPAD0) and (Key <= VK_NUMPAD9) and (Shift = []) then
begin
Key := (Key - VK_NUMPAD0) + Ord('0'); // Translate Numeric key input to the corresponding numbers
end;
// Insert a char
if (Key In [32..122]) then
begin