engine: camera-key test follows the per-platform default keymap

Off macOS, Ctrl+9 belongs to Toggle All Audio Targets (⌘9 there), so Cut to Camera 9 has no default key on Windows, Linux and FreeBSD; cameras 1–8 keep Ctrl+1–8 everywhere. Found by the FreeBSD CI job.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Brandon ThomasandClaude Opus 5.5 committed 2026-10-06 16:01:36 -04:00
1 parent bd944ee5df
commit f2b36fe277
1 file changed
+5 -1
+5 -1
View File
@@ -609,7 +609,11 @@ fn camera_keys_cut_and_select() {
let keys: Vec<(String, String)> =
s.shortcuts.bindings.iter().filter(|b| b.command.starts_with("multicam.")).map(|b| (b.command.clone(), b.keys.clone())).collect();
assert!(keys.contains(&("multicam.selectCamera1".into(), "1".into())), "{keys:?}");
assert!(keys.contains(&("multicam.cutToCamera9".into(), "Ctrl+9".into())), "{keys:?}");
assert!(keys.contains(&("multicam.cutToCamera2".into(), "Ctrl+2".into())), "{keys:?}");
// ⌃9 is Premiere's macOS key; off macOS Ctrl+9 is Toggle All Audio Targets (⌘9 there), which
// wins, so Cut to Camera 9 has no default key on Windows, Linux and FreeBSD
let nine = keys.contains(&("multicam.cutToCamera9".into(), "Ctrl+9".into()));
assert_eq!(nine, cfg!(target_os = "macos"), "{keys:?}");
}
/// Colour of camera `k` (0-based) in the many-angle tests: distinct reds and greens.