diff --git a/crates/engine/src/commands/time.rs b/crates/engine/src/commands/time.rs index 5a01b9f6..4d302829 100644 --- a/crates/engine/src/commands/time.rs +++ b/crates/engine/src/commands/time.rs @@ -176,8 +176,8 @@ pub fn specs() -> Vec { cmd!("time.step", "Step Frames", [], None, "{frames}", has_comp, step), cmd!("time.start", "Go to Start", [], Some("Home"), "{}", has_comp, |s, _| go(s, &json!({"to": "start"}))), cmd!("time.end", "Go to End", [], Some("End"), "{}", has_comp, |s, _| go(s, &json!({"to": "end"}))), - cmd!("time.workAreaStart", "Go to Work Area Start", [], None, "{}", has_comp, |s, _| go(s, &json!({"to": "workStart"}))), - cmd!("time.workAreaEnd", "Go to Work Area End", [], None, "{}", has_comp, |s, _| go(s, &json!({"to": "workEnd"}))), + cmd!("time.workAreaStart", "Go to Work Area Start", [], Some("Shift+Home"), "{}", has_comp, |s, _| go(s, &json!({"to": "workStart"}))), + cmd!("time.workAreaEnd", "Go to Work Area End", [], Some("Shift+End"), "{}", has_comp, |s, _| go(s, &json!({"to": "workEnd"}))), cmd!("time.layerIn", "Go to Layer In Point", [], Some("I"), "{}", has_comp, |s, _| go(s, &json!({"to": "layerIn"}))), cmd!("time.layerOut", "Go to Layer Out Point", [], Some("O"), "{}", has_comp, |s, _| go(s, &json!({"to": "layerOut"}))), cmd!( diff --git a/crates/engine/src/tests_tail.rs b/crates/engine/src/tests_tail.rs index 5794e477..dc6d54b5 100644 --- a/crates/engine/src/tests_tail.rs +++ b/crates/engine/src/tests_tail.rs @@ -420,3 +420,13 @@ fn camera_focus_commands_undo_and_serde() { assert!(s.execute("camera.linkFocusToLayer", json!({})).is_err()); assert!(s.execute("camera.linkFocusToPoi", json!({})).is_ok()); } + +/// Go to Work Area Start / End have After Effects' default keys (Shift+Home / Shift+End). +#[test] +fn work_area_navigation_has_after_effects_default_keys() { + let s = Session::default(); + for (id, key) in [("time.workAreaStart", "Shift+Home"), ("time.workAreaEnd", "Shift+End")] { + let b = s.shortcuts().find(id).unwrap_or_else(|| panic!("{id} is bindable")); + assert_eq!(b.defaults, [key.to_string()], "{id}"); + } +}