mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-20 04:27:48 -05:00
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 <dennis.sheirer@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user