<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>On 2011-09-01 15:46, Bart wrote:</tt>
<blockquote
cite="mid:CAMye31wx-Y_K3bhFCQ9MVD+FJ537j0uUdwQr1oNRA=tLQsk8FA@mail.gmail.com"
type="cite">
<pre wrap=""><tt>Hi,
A question on KeyDown on Mac:
procedure TSomeEditControl.KeyDown(var Key: Word; Shift: TShiftState);
begin
if (Key = VK_SomeKey) and (Shift = [ssCtrl]) then
begin// Ctrl+SomeKey
DoSomething;
Key := 0;
end;
end;
This will do fine on PC's and I thought it would work with Cmd+SomeKey
on Mac, but is this really the case?
(Actually SomeKey is VK_C, VK_V or VK_X in this case.
</tt></pre>
</blockquote>
<tt>I use <b>ssMeta</b> for using the Cmd key on a MAC. I think
most modern MAC actually have a Ctrl key as well as the Cmd key.<br>
<br>
Kind regards<br>
Torsten Bonde Christiansen.<br>
</tt>
</body>
</html>