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

Close windows with keyboard shortcuts #34

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

petebankhead
Copy link
Member

Use

FXUtils.addCloseWindowShortcuts(stage);

to add an event handler to stage that causes a window close request to be fired if pressing Shortcut + W or Escape.

Alternatively, use overloaded method to provide a collection of shortcuts instead.

petebankhead added a commit to petebankhead/qupath that referenced this pull request Jun 21, 2024
Initial PR to test qupath/qupath-fxtras#34 in action.
Applied only to a few relevant windows for now.
Copy link
Contributor

@alanocallaghan alanocallaghan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible

@petebankhead petebankhead merged commit 79d6cbf into qupath:main Jun 21, 2024
1 check passed
@petebankhead petebankhead deleted the close-windows branch June 21, 2024 15:05
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