Skip to content

OnKeyAction ALT key not detected #7

Description

Hi,

I just noticed that when you place an ELV on a FRM and assign an ELV.KeyAction the ALT key isnt detected, Shift en CTRL works fine.

`procedure TForm1.EasyListview1KeyAction(Sender: TCustomEasyListview; var CharCode: Word; var Shift: TShiftState; var DoDefault: Boolean);
begin
if ssALT in Shift then ShowMessage ('ELV ssAlt') <-- Not detected
else
if ssCTRL in Shift then ShowMessage ('ELV ssCtrl')
else
if ssShift in Shift then ShowMessage ('ELV ssShift')
end;

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
{
if ssALT in Shift then ShowMessage ('FRM ssAlt') <-- Detected / KeyPreview=True
else
if ssCTRL in Shift then ShowMessage ('FRM ssCtrl')
else
if ssShift in Shift then ShowMessage ('FRM ssShift')
}
end;
`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions