Valdas Jankūnas wrote:
Hi,
if i press _only_ Alt key then in OnKeyDown i get
(ssAlt in Shift)=False
and if i release that Alt key then in OnKeyUp i get
(ssAlt in Shift)=True
I think that is not correct, if i press Alt key (only, no combine wit
other Keys) then i must get ssAlt in Shift. Or not?
I think it is correct, however I need to look at the delphi behaviour.
You don't get a ssAlt in Shift in a keydown because in Shift you get the
state of the key at the moment you press. Since oyu start to press Alt,
it is not (yet) in the state
Ctrl and Shift works as expected.
I agree that the behaviour should be the smame for ssAlt or ssCtlr, but
which behaviour is the correct one.
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives