在TApplicationEvents的OnMessage事件中进行屏蔽——
procedure TForm1.ApplicationEvents1Message(var Msg: tagMSG;
var Handled: Boolean);
begin
with Msg do
if (hwnd = Edit1.Handle) and (message = WM_KEYDOWN) then
case wParam of
VK_TAB: Handled := True;
Ord('z'), Ord('Z'): Handled := (GetKeyState(VK_CONTROL) and $80) = $80;
end;
end;