LCL: Do not treat a number in edit control as accelerator key. Issue #34608, patch from C Western.

git-svn-id: trunk@61792 -
This commit is contained in:
juha 2019-09-01 06:07:29 +00:00
parent 538976df00
commit 6a27301326

View File

@ -501,7 +501,7 @@ begin
// all normal characters are handled by the Edit
//debugln('TCustomEdit.WMChar ',DbgSName(Self),' ',dbgs(Message.CharCode));
if (KeyDataToShiftState(Message.KeyData) * [ssCtrl, ssAlt] = [])
and (Message.CharCode in [ord('A')..ord('Z'),ord('a')..ord('z')]) then
and (Message.CharCode in [ord('A')..ord('Z'),ord('a')..ord('z'),ord('0')..ord('9')]) then
// eat normal keys, so they don't trigger accelerators
Message.Result := 1
else