mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 21:58:18 +02:00
lcl: improve key handling in maskedit from Bart Broersma (#0011764)
git-svn-id: trunk@17914 -
This commit is contained in:
parent
4e176f6df7
commit
07f5ba88b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user