Unable to enter '.' or ',' in MaskEdit control with mask characters [a / A / c / C]
Original Reporter info from Mantis: DougNettleton
-
Reporter name:
Original Reporter info from Mantis: DougNettleton
- Reporter name:
Description:
The following changes in the TCustomMaskEdit.KeyDown procedure of maskedit.pp
changing ...
// goto a dot
if (Key = VK_OEM_PERIOD) then
to ...
// goto a dot
if (Key = VK_OEM_PERIOD) and (pos('.', FMask) > 0) then
and changing ...
// goto a comma
if (Key = VK_OEM_COMMA) then
to ...
// goto a comma
if (Key = VK_OEM_COMMA) and (pos(',', FMask) > 0) then
works for me. But maybe, I'm not smart enough to know why you would want to skip to the character after a '.' or ',' unless they're in the mask.
Mantis conversion info:
- Mantis ID: 14453
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.27 (SVN)
- Fixed in revision: 21618 (#370bd8af)
- Monitored by: » @flyingsheep (Bart Broersma)
- Target version: 1.0.0
- LazTarget: 1.0