From 838e7708c0ccab2854e8fe577784b90550e997b7 Mon Sep 17 00:00:00 2001 From: Denny Sheirer Date: Fri, 20 Nov 2026 02:43:38 -0500 Subject: [PATCH] #2713 HistoryTableViewTest fires the platform copy shortcut (Cmd-C on macOS) (#2714) The copy handler matches KeyCombination.SHORTCUT_DOWN, which is Meta on macOS, but the test always fired Ctrl-C, so nothing was copied on the Mac CI runner. Co-authored-by: denny Co-authored-by: Claude Opus 5.5 --- .../github/dsheirer/gui/nowplaying/HistoryTableViewTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java b/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java index be9792ab7..e59e07d8b 100644 --- a/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java +++ b/src/test/java/io/github/dsheirer/gui/nowplaying/HistoryTableViewTest.java @@ -76,9 +76,11 @@ public class HistoryTableViewTest table.getSelectionModel().select(0); table.getSelectionModel().select(2); + //The copy shortcut is Cmd-C on macOS and Ctrl-C elsewhere + boolean mac = System.getProperty("os.name", "").toLowerCase().contains("mac"); Clipboard.getSystemClipboard().clear(); Event.fireEvent(table, new KeyEvent(KeyEvent.KEY_PRESSED, "", "", KeyCode.C, false, - true, false, false)); + !mac, false, mac)); copied.complete(Clipboard.getSystemClipboard().getString()); } catch(Throwable t)