Ctrl key presses while moving remote access window

Asked

Viewed 63 times

2

Good afternoon.

I have the following problem: I have an application where the Ctrl key activates an application event, and some users use RDP(remote access) to use this application, the problem is that the Ctrl key is triggered every time the user moves the RDP window or change application and back to the RDP.

For example:

procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  if (Key = VK_CONTROL) then
    ShowMessage('Tecla Ctrl Pressionada');
end;

I could see that the application detects the message WM_KEYUP and treats, which ends up triggering the Onkeyup event with parameter 17(Ctrl), simulating that the Ctrl key was pressed.

I wonder if anyone has any idea if this behavior is a Delphi/RDP bug and if they have any possible solution. inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.