[fpc-pascal] KeyDown routine and Ctrl+Q

Jürgen Hestermann juergen.hestermann at gmx.de
Thu Feb 9 11:52:21 CET 2017


Am 2017-02-08 um 23:26 schrieb Vojtěch Čihák:
 > when you press CTRL+Q you will obtain two OnKeyDown events. The first with Key=17 (it is CTRL) and the second with Key=81 (Q). Both events will have ssCtrl in Shift.

Yep, it makes sense for OnKeyDown.
Thanks for the explanation.

I don't know why I was under the impression that it
did not work. It works now just the way I coded
it from start. I may have got bewildered by some other
problem I got with my code...

BTW:
When Ctrl is pressed, then Shift is empty (which is expected).
Only on the second key Q Shift contains ssCtrl.




More information about the fpc-pascal mailing list