mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 05:56:02 +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
|
||||
// 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'),ord('0')..ord('9')]) then
|
||||
// eat normal keys, so they don't trigger accelerators
|
||||
Message.Result := 1
|
||||
if KeyDataToShiftState(Message.KeyData) * [ssCtrl, ssAlt] = [] then
|
||||
Message.Result := 1 // eat normal keys, so they don't trigger accelerators
|
||||
else
|
||||
inherited WMChar(Message);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user