mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 14:29:29 +02:00
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:
parent
538976df00
commit
6a27301326
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user