-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
P4
-
None
-
Affects Version/s: jfx17
-
Component/s: javafx
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
MacOS
A DESCRIPTION OF THE PROBLEM :
When closing a scene unsing CMD-Q on MacOS, I want to let the user confirm to save the project modifications to file. This works fine using Scene.setOnCloseRequest() on Windows, but not on MacOs. How can I do the same on MacOs?
stage.setOnCloseRequest(event -> {
if (!acceptClosingFrame()) {
event.consume();
}
});
FREQUENCY : always
MacOS
A DESCRIPTION OF THE PROBLEM :
When closing a scene unsing CMD-Q on MacOS, I want to let the user confirm to save the project modifications to file. This works fine using Scene.setOnCloseRequest() on Windows, but not on MacOs. How can I do the same on MacOs?
stage.setOnCloseRequest(event -> {
if (!acceptClosingFrame()) {
event.consume();
}
});
FREQUENCY : always