Data lost in ComboBox, Style=csSimple => Leave with TAB
Original Reporter info from Mantis: griebold
-
Reporter name: Gernot Riebold
Original Reporter info from Mantis: griebold
- Reporter name: Gernot Riebold
Description:
ComboBox with Style=csSimple
Edit the ComboBox and leave it with TAB-Key
Text is lost
Steps to reproduce:
Form with ComboBox, Style=csSimple
Edit the ComboBox
Leave it with TAB-Key
Text is lost
Additional information:
Problem is in lcl\include\customcombobox.inc - Line 500
Comment in Line 499 ...Issue #32559 (closed)
Very quick and (very) diry workaround - Line 494
if Style = csSimple then
PreventDropDown := Key in [VK_RETURN, VK_ESCAPE]
else
PreventDropDown := Key in [VK_TAB, VK_RETURN, VK_ESCAPE];
Mantis conversion info:
- Mantis ID: 35087
- OS: 10
- OS Build: 10
- Platform: Windows
- Version: 2.0
- Fixed in version: 2.0.10
- Fixed in revision: 63204 (#47ba57fd)