mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:39:06 +02:00
LCL: Do not treat any char without modifiers in edit control as accelerator key. Issue #34608.
git-svn-id: trunk@61798 -
This commit is contained in:
parent
fafc78142f
commit
e436e9b9dd
@ -500,10 +500,8 @@ procedure TCustomEdit.WMChar(var Message: TLMChar);
|
|||||||
begin
|
begin
|
||||||
// all normal characters are handled by the Edit
|
// all normal characters are handled by the Edit
|
||||||
//debugln('TCustomEdit.WMChar ',DbgSName(Self),' ',dbgs(Message.CharCode));
|
//debugln('TCustomEdit.WMChar ',DbgSName(Self),' ',dbgs(Message.CharCode));
|
||||||
if (KeyDataToShiftState(Message.KeyData) * [ssCtrl, ssAlt] = [])
|
if KeyDataToShiftState(Message.KeyData) * [ssCtrl, ssAlt] = [] then
|
||||||
and (Message.CharCode in [ord('A')..ord('Z'),ord('a')..ord('z'),ord('0')..ord('9')]) then
|
Message.Result := 1 // eat normal keys, so they don't trigger accelerators
|
||||||
// eat normal keys, so they don't trigger accelerators
|
|
||||||
Message.Result := 1
|
|
||||||
else
|
else
|
||||||
inherited WMChar(Message);
|
inherited WMChar(Message);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user