On Mon, 24 Jul 2023 19:06:23 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

> What I mean is to look further whether this situation affects any internal 
> state of Robot so that wrong mouse events are posted.
> 
> It could still be a possible scenario. Consider Robot is moving mouse slowly, 
> the user presses a mouse button; the following events generated by the robot 
> should indicate the mouse button is pressed until the user releases the mouse 
> button.
> 
> There's also the **fourth possibility**: Robot generates keyboard events 
> while the user presses modifier keys on the keyboard. It's an invalid 
> scenario for tests but not impossible. Should the robot combine its internal 
> state with the global hardware state?

@aivanov-jdk Makes sense. Thanks for clarifying. I'll verify flag state for the 
cases discussed above and that we are not making any unexpected state changes.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14744#issuecomment-1648494523

Reply via email to