diff --git a/backup/main.pas b/backup/main.pas index aa5e622..35f1966 100644 --- a/backup/main.pas +++ b/backup/main.pas @@ -2886,7 +2886,9 @@ begin Result := 0; VK_RETURN: begin if not isAlt then - Result := 13; + Result := 13 + else + Result := 0; end; VK_SHIFT: Result := 0; VK_CAPITAL: begin diff --git a/main.pas b/main.pas index 35f1966..2e261b2 100644 --- a/main.pas +++ b/main.pas @@ -2731,9 +2731,7 @@ begin lastShowTime := Now(); lastFocusLostTime:=Now(); - SimpleGet( baseUrl + '/api/control/mouse/buttonstate/1' ); - Sleep(50); - SimpleGet( baseUrl + '/api/control/mouse/buttonstate/0' ); + SimpleGet( baseUrl + '/api/control/mouse/buttonclick' ); end; ReposWindow; end;