@@ -612,11 +612,33 @@ public static void simplifyTitledPane(TitledPane pane, boolean boldTitle) {
612612 }
613613 }
614614
615+ /**
616+ * Add shortcuts to close a stage using the standard shortcuts (Shortcut+W, Esc).
617+ * @param stage
618+ * @deprecated use {@link #addCloseWindowShortcuts(Window)}
619+ */
620+ @ Deprecated
621+ public static void addCloseWindowShortcuts (Stage stage ) {
622+ addCloseWindowShortcuts ((Window )stage );
623+ }
624+
625+ /**
626+ * Add shortcuts to close a stage using the specified key combinations.
627+ * @param stage
628+ * @param keyCombinations
629+ * @deprecated use {@link #addCloseWindowShortcuts(Window, Collection)}
630+ */
631+ @ Deprecated
632+ public static void addCloseWindowShortcuts (Stage stage , Collection <? extends KeyCombination > keyCombinations ) {
633+ addCloseWindowShortcuts ((Window )stage , keyCombinations );
634+ }
635+
615636
616637 /**
617638 * Add shortcuts to close a window using the standard shortcuts (Shortcut+W, Esc).
618639 * @param window
619640 * @see #addCloseWindowShortcuts(Window, Collection)
641+ * @since v0.4.0
620642 */
621643 public static void addCloseWindowShortcuts (Window window ) {
622644 addCloseWindowShortcuts (window , Arrays .asList (
@@ -632,6 +654,7 @@ public static void addCloseWindowShortcuts(Window window) {
632654 * @param keyCombinations
633655 * @see #addCloseWindowShortcuts(Window)
634656 * @implSpec this only fires a window close request; any handler may still choose to consume the event quietly
657+ * @since v0.4.0
635658 */
636659 public static void addCloseWindowShortcuts (Window window , Collection <? extends KeyCombination > keyCombinations ) {
637660 if (keyCombinations .isEmpty ()) {
0 commit comments