Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not always getting Button1Clicked events on Netdriver or CursesDriver #3374

Open
tig opened this issue Apr 2, 2024 · 0 comments
Open

Not always getting Button1Clicked events on Netdriver or CursesDriver #3374

tig opened this issue Apr 2, 2024 · 0 comments
Labels
Milestone

Comments

@tig
Copy link
Collaborator

tig commented Apr 2, 2024

On both NetDriver and CursesDriver:

  • Run UI Catalog
  • Hit Ctrl-A to show about box
  • Move mouse over OK button and press button1 - nothing happens
  • Don't move mouse and click OK button again - about box exits

Debugging this by adding Debug.WriteLine to ProcessMouseEvent:

If the mouse has not moved since last mouse event, we get

Button1Pressed
Button1Released
Button1Clicked

If the mouse HAS moved we get

Button1Pressed
Button1Released

This happens on both these drivers. On WIndowsDriver we get:

Button1Pressed
Button1Released
Button1Clicked

WindowsDriver has a ton of logic in it, that I don't fully understand, apparently to generated clicked events that neither NetDriver or Curses has.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Status: No status
Development

No branches or pull requests

1 participant