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

Update mouse event handling and exception throwing in UIUtil #187

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

leewyatt
Copy link
Contributor

Updated the clickOnNode method in UIUtil.java to be more specific in handling mouse events. Now, it throws IllegalArgumentException if the event is not a mouse clicked event. Also, refactored the usage of the clickOnNode method in EnhancedPasswordField.java to directly check for primary button click.

leewyatt added 2 commits June 11, 2024 04:11
Updated the clickOnNode method in UIUtil.java to be more specific in handling mouse events. Now, it throws IllegalArgumentException if the event is not a mouse clicked event. Also, refactored the usage of the clickOnNode method in EnhancedPasswordField.java to directly check for primary button click.
The method names 'clickOnNode' in the UIUtil class were renamed to 'isClickOnNode' to improve readability and understandability, since these methods return a boolean. The code where these methods are called was also updated to reflect this change.
Copy link

@dlemmermann dlemmermann merged commit df4eb7f into master Jun 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants